mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Added a stress tester so we can benchmark the template rendering.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{$title}}{{/title}}</title>
|
||||
{{$head}}{{/head}}
|
||||
</head>
|
||||
<body>
|
||||
{{$nav}}{{/nav}}
|
||||
{{$content}}{{/content}}
|
||||
{{$sidebar}}{{/sidebar}}
|
||||
{{$footer}}{{/footer}}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
{{<base}}
|
||||
{{$title}}Archive{{/title}}
|
||||
{{$head}}
|
||||
<meta name="description" content="Post archive">
|
||||
{{/head}}
|
||||
{{$nav}}
|
||||
<nav>
|
||||
<ul>
|
||||
{{#nav_items}}
|
||||
<li><a href="{{url}}">{{label}}</a></li>
|
||||
{{/nav_items}}
|
||||
</ul>
|
||||
</nav>
|
||||
{{/nav}}
|
||||
{{$content}}
|
||||
<main>
|
||||
<h1>Archive</h1>
|
||||
{{#posts | group_by year}}
|
||||
<section class="year">
|
||||
<h2>{{key}}</h2>
|
||||
<ul>
|
||||
{{#items}}
|
||||
{{> post}}
|
||||
{{/items}}
|
||||
</ul>
|
||||
</section>
|
||||
{{/posts}}
|
||||
</main>
|
||||
{{/content}}
|
||||
{{$sidebar}}
|
||||
<aside>
|
||||
<h3>Recent Comments</h3>
|
||||
<ul>
|
||||
{{#comments}}
|
||||
{{> comment}}
|
||||
{{/comments}}
|
||||
</ul>
|
||||
</aside>
|
||||
{{/sidebar}}
|
||||
{{$footer}}
|
||||
<footer>
|
||||
<p>Generated {{now}}</p>
|
||||
</footer>
|
||||
{{/footer}}
|
||||
{{/base}}
|
||||
@@ -0,0 +1,5 @@
|
||||
<li class="comment">
|
||||
<strong>{{author}}</strong>
|
||||
<time datetime="{{date}}">{{date | format}}</time>
|
||||
<p>{{body}}</p>
|
||||
</li>
|
||||
@@ -0,0 +1,9 @@
|
||||
<li class="post">
|
||||
<article>
|
||||
<h3><a href="{{url}}">{{title}}</a></h3>
|
||||
<time datetime="{{date}}">{{date | format}}</time>
|
||||
<p class="excerpt">{{excerpt}}</p>
|
||||
{{#author}}<address>{{author}}</address>{{/author}}
|
||||
{{#tags}}<a href="/tag/{{slug}}" class="tag">{{name}}</a>{{/tags}}
|
||||
</article>
|
||||
</li>
|
||||
Reference in New Issue
Block a user