aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-01-06 21:01:32 -0300
committerMatias Linares <matiaslina@gmail.com>2019-01-06 21:01:32 -0300
commit4f7a67d5fb82b4300e94c6df9933f07b9020ffeb (patch)
treecd64b2a5bc1d3026f0fe4fab1d32131c6af25719
parent8fe108196f3e9d6a7fc6ffda35f3943a506ea018 (diff)
downloadperl6-matrix-client-4f7a67d5fb82b4300e94c6df9933f07b9020ffeb.tar.gz
Add templates
-rw-r--r--templates/index.mustache82
-rw-r--r--templates/main.mustache69
2 files changed, 151 insertions, 0 deletions
diff --git a/templates/index.mustache b/templates/index.mustache
new file mode 100644
index 0000000..c3eec31
--- /dev/null
+++ b/templates/index.mustache
@@ -0,0 +1,82 @@
+<!doctype html>
+<html lang="{{ lang }}">
+ <head>
+ <title>Matrix::Client</title>
+ <meta charset="UTF-8" />
+ <link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css">
+ <style>
+ kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }
+ samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }
+ u { text-decoration: none }
+ .nested {
+ margin-left: 3em;
+ }
+ aside, u { opacity: 0.7 }
+ a[id^="fn-"]:target { background: #ff0 }
+ </style>
+ <link rel="stylesheet" href="https://deprecated.org/raw/s/styles.css">
+ </head>
+ <body class="pod">
+ <div id="___top"></div>
+ <div id="wrapper">
+ <header class="header">
+ <a class="box" href="/">
+ <img src="https://deprecated.org/raw/i/perl6-matrix@100.png" alt='perl6-matrix' />
+ <h1 id="title">
+ Perl 6 Matrix Client
+ </h1>
+ </a>
+
+ </header>
+ <aside class="menu">
+ <nav>
+ <h3>Download</h3>
+ <p>Current version <b>{{ version }}</b></p>
+ <p>Get Matrix::Client from <a href="https://github.com/matiaslina/perl6-matrix-client">Github</a>, or install it with <a href="https://github.com/ugexe/zef">zef</a></p>
+ <div class="highlight">
+ <pre style='font-size: 12px; '>zef install Matrix::Client</pre>
+ </div>
+
+ <nav>
+ <h3>Documentation</h3>
+ <ul>
+ <li><a href="basics.html">Basics</a></li>
+ <li><a href="usage.html">Usage</a></li>
+ <li>API</li>
+ <ul>
+ <li><a href="client.html">Matrix::Client</a></li>
+ <li><a href="responses.html">Matrix::Responses</a></li>
+ <li><a href="room.html">Matrix::Client::Room</a></li>
+ <li><a href="x-matrix-response.html">X::Matrix</a></li>
+ <li><a href="requester.html">Matrix::Requester</a></li>
+ </ul>
+ </ul>
+ </nav>
+ </aside>
+
+ <div class="content">
+ <h1 class='title'>Welcome!</h1>
+ This is the home of Matrix::Client. It is a perl 6 client to interact with the
+ <a href="https://matrix.org">matrix</a> protocol. This library aims to deliver a full
+ coverage of the client-server api.
+
+ Read more in the <a href="basics.html">Basic tutorial</a>.
+
+ <h2>Contribute</h2>
+ <p>Development takes place on <a href="https://github.com/matiaslina/perl6-matrix-client">Github</a> where the repository, tickets and pull requests can be viewed.</p>
+ <p>If you want to make a contribution, found a bug, or just want to propose a feature,
+ just open a ticket on github. You can also send an e-mail to me or get in touch through matrix.</p>
+
+ <h2>Author</h2>
+ <p>Matrix::Client is developed by <b>Matias Linares</b>. You can send an e-mail to
+ <i>matias AT deprecated DOT org</i> or send a message to
+ <a href="https://matrix.to/#/@matias:matrix.deprecated.org"><i>@matias:matrix.deprecated.org</i></a></p>
+ </div>
+ <footer>
+
+ <a href="https://github.com/matiaslina/perl6-matrix-client">
+ <img width=40 src="https://cdn1.iconfinder.com/data/icons/smallicons-logotypes/32/github-512.png" />
+ </a>
+ </footer>
+ </body>
+</html>
diff --git a/templates/main.mustache b/templates/main.mustache
new file mode 100644
index 0000000..78501f3
--- /dev/null
+++ b/templates/main.mustache
@@ -0,0 +1,69 @@
+<!doctype html>
+<html lang="{{ lang }}">
+ <head>
+ <title>{{{ title }}}</title>
+ <meta charset="UTF-8" />
+ <link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css">
+ <style>
+ kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }
+ samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }
+ u { text-decoration: none }
+ .nested {
+ margin-left: 3em;
+ }
+ aside, u { opacity: 0.7 }
+ a[id^="fn-"]:target { background: #ff0 }
+ </style>
+ <link rel="stylesheet" href="https://deprecated.org/raw/s/styles.css">
+ {{# metadata }}{{{ metadata }}}{{/ metadata }}
+ {{{ head }}}
+ </head>
+ <body class="pod">
+ <div id="___top"></div>
+ <div id="wrapper">
+ <header class="header">
+ <a class="box" href="/">
+ <img src="https://deprecated.org/raw/i/perl6-matrix@100.png" alt='perl6-matrix' />
+ <h1 id="title">
+ Perl 6 Matrix Client
+ </h1>
+ </a>
+ </header>
+
+ <aside class="menu">
+ <nav><h3><a href="index.html">Home</a></h3></nav>
+ {{# toc }}{{{ toc }}}{{/ toc }}
+ <nav>
+ <h3>See also</h3>
+ <ul>
+ <li><a href="basics.html">Basics</a></li>
+ <li><a href="usage.html">Usage</a></li>
+ <li><b><u>API</u></b></li>
+ <ul>
+ <li><a href="client.html">Matrix::Client</a></li>
+ <li><a href="responses.html">Matrix::Responses</a></li>
+ <li><a href="room.html">Matrix::Client::Room</a></li>
+ <li><a href="x-matrix-response.html">X::Matrix</a></li>
+ <li><a href="requester.html">Matrix::Requester</a></li>
+ </ul>
+ </ul>
+ </nav>
+ </aside>
+
+ <div class="content">
+ {{# title }}<h1 class='title'>{{{ title }}}</h1>{{/ title }}
+ {{# subtitle }}<p class='subtitle'>{{{ subtitle }}}</p>{{/ subtitle }}
+ <div class="pod-body{{^ toc }} no-toc{{/ toc }}">
+ {{# body }}{{{ . }}}{{/ body }}
+ </div>
+ {{# footnotes }}{{{ footnotes }}}{{/ footnotes }}
+ {{{ footer }}}
+ </div>
+ <footer>
+ <a href="https://github.com/matiaslina/perl6-matrix-client">
+ <img width=40 src="https://cdn1.iconfinder.com/data/icons/smallicons-logotypes/32/github-512.png" />
+ </a>
+ </footer>
+ </div>
+ </body>
+</html>