Skip to content

Commit

Permalink
Interpolate template variables correctly (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo authored Sep 24, 2018
1 parent 2b3be81 commit 65b4d41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/directory.jst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Files within {{=it.directory}}</title>
<title>Files within {{!it.directory}}</title>

<style>
body {
Expand Down Expand Up @@ -187,7 +187,7 @@
<i>Index of&nbsp;</i>

{{~it.paths :value:index}}
<a href="/{{=value.url}}">{{=value.name}}</a>
<a href="/{{!value.url}}">{{!value.name}}</a>
{{~}}
</h1>

Expand All @@ -197,9 +197,9 @@
<ul id="files">
{{~it.files :value:index}}
<li>
<a href="{{=value.relative}}" title="{{=value.title}}" class="{{=value.ext}}">{{=value.base}}</a>
<a href="{{!value.relative}}" title="{{!value.title}}" class="{{!value.ext}}">{{!value.base}}</a>
{{? value.size}}
<i>{{=value.size}}</i>
<i>{{!value.size}}</i>
{{?}}
</li>
{{~}}
Expand Down

0 comments on commit 65b4d41

Please sign in to comment.