mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
swap to tera in place of handlebars
This commit is contained in:
parent
76c75a40d9
commit
ee48eae327
25 changed files with 407 additions and 184 deletions
|
@ -1,30 +0,0 @@
|
|||
<div id="click">
|
||||
<p>WARNING: no save mechanic is implemented yet!!</p>
|
||||
<h1>click</h1>
|
||||
<noscript>
|
||||
<h1>javascript is required for the clicker game!!</h1>
|
||||
</noscript>
|
||||
<div class="resources">
|
||||
{{#*inline "resource"}}
|
||||
<span class="resource">{{name}}</span><span id={{id}}>0</span> <span>(<span
|
||||
id="{{id}}-per-second">0</span>/s)</span>
|
||||
{{/inline}}
|
||||
{{> resource id="pets" name="pets"}}
|
||||
{{> resource id="barks" name="barks"}}
|
||||
{{> resource id="kisses" name="kisses"}}
|
||||
</div>
|
||||
<button id="barker">bark</button>
|
||||
<div class="tools">
|
||||
{{#*inline "tool"}}
|
||||
<div class="tool" data-tool={{id}}>
|
||||
<p class="name">{{name}} (<span class="count">0</span>, lvl <span class="level">1</span>)</p>
|
||||
<p class="description">{{description}}</p>
|
||||
<button class="buy">buy</button> <button class="upgrade">upgrade</button>
|
||||
</div>
|
||||
{{/inline}}
|
||||
{{> tool id="hand" name="hand" description="don't bite the hand that pets you"}}
|
||||
{{> tool id="puppy" name="puppy" description="arf arf wruff :3"}}
|
||||
{{> tool id="foodBowl" name="food bowl" description="more food for more barking"}}
|
||||
{{> tool id="kisser" name="kisser wow" description="someone to kiss all those poor puppies,,"}}
|
||||
</div>
|
||||
</div>
|
31
site/templates/extras/click.tera
Normal file
31
site/templates/extras/click.tera
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% macro resource(id, name) %}
|
||||
<span class="resource">{{name}}</span><span id={{id}}>0</span> <span>(<span id="{{id}}-per-second">0</span>/s)</span>
|
||||
{% endmacro resource %}
|
||||
|
||||
{% macro tool(id, name, description) %}
|
||||
<div class="tool" data-tool={{id}}>
|
||||
<p class="name">{{name}} (<span class="count">0</span>, lvl <span class="level">1</span>)</p>
|
||||
<p class="description">{{description}}</p>
|
||||
<button class="buy">buy</button> <button class="upgrade">upgrade</button>
|
||||
</div>
|
||||
{% endmacro tool %}
|
||||
|
||||
<div id="click">
|
||||
<p>WARNING: no save mechanic is implemented yet!!</p>
|
||||
<h1>click</h1>
|
||||
<noscript>
|
||||
<h1>javascript is required for the clicker game!!</h1>
|
||||
</noscript>
|
||||
<div class="resources">
|
||||
{{ self::resource(id="pets", name="pets") }}
|
||||
{{ self::resource(id="barks", name="barks") }}
|
||||
{{ self::resource(id="kisses", name="kisses") }}
|
||||
</div>
|
||||
<button id="barker">bark</button>
|
||||
<div class="tools">
|
||||
{{ self::tool(id="hand", name="hand", description="don't bite the hand that pets you") }}
|
||||
{{ self::tool(id="puppy", name="puppy", description="arf arf wruff :3") }}
|
||||
{{ self::tool(id="foodBowl", name="food bowl", description="more food for more barking") }}
|
||||
{{ self::tool(id="kisser", name="kisser wow", description="someone to kiss all those poor puppies,,") }}
|
||||
</div>
|
||||
</div>
|
|
@ -1,13 +0,0 @@
|
|||
<hr />
|
||||
<div class="index-info">
|
||||
<h3>most recent blog posts</h3>
|
||||
<div class="blog-post-list">
|
||||
{{#each resources}}
|
||||
<div class="post">
|
||||
<p class="title"><a href="/blog/{{id}}">{{title}}</a></p>
|
||||
<p class="timestamp">{{timestamp}}</p>
|
||||
<p class="short-desc">{{desc}}</p>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
13
site/templates/extras/index-injection.tera
Normal file
13
site/templates/extras/index-injection.tera
Normal file
|
@ -0,0 +1,13 @@
|
|||
<hr />
|
||||
<div class="index-info">
|
||||
<h3>most recent blog posts</h3>
|
||||
<div class="blog-post-list">
|
||||
{% for resource in resources %}
|
||||
<div class="post">
|
||||
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
|
||||
<p class="timestamp">{{resource.timestamp}}</p>
|
||||
<p class="short-desc">{{resource.desc}}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue