backend: use % for control flow and directives, <%= %> for interpolation
This commit is contained in:
parent
4f5ce1100c
commit
aaf12cb7c2
@ -1,4 +1,4 @@
|
|||||||
<% if (my $pager = stash("pager")) { %>
|
% if (my $pager = stash("pager")) {
|
||||||
<footer>
|
<footer>
|
||||||
<nav class="text-center">
|
<nav class="text-center">
|
||||||
<%= link_to "<<" => $pager->{first_page} if exists $pager->{first_page} %>
|
<%= link_to "<<" => $pager->{first_page} if exists $pager->{first_page} %>
|
||||||
@ -8,4 +8,4 @@
|
|||||||
<%= link_to ">>" => $pager->{last_page} if exists $pager->{last_page} %>
|
<%= link_to ">>" => $pager->{last_page} if exists $pager->{last_page} %>
|
||||||
</nav>
|
</nav>
|
||||||
</footer>
|
</footer>
|
||||||
<% } %>
|
% }
|
||||||
|
@ -21,12 +21,16 @@
|
|||||||
% if (defined title) {
|
% if (defined title) {
|
||||||
<h1><%= title %></h1>
|
<h1><%= title %></h1>
|
||||||
% }
|
% }
|
||||||
<div class="flex-i-fullsize"><%= content %></div>
|
<div class="flex-i-fullsize">
|
||||||
<%= include '_pager' %>
|
%= content
|
||||||
|
</div>
|
||||||
|
%= include "_pager"
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer class="border-top">
|
<footer class="border-top">
|
||||||
<p class="viewport text-center text-small">Powered by <a href="https://www.openbsd.org">OpenBSD</a> and <a href="https://www.perl.org/">Perl</a>.</p>
|
<p class="viewport text-center text-small">
|
||||||
|
Powered by <%= link_to OpenBSD => "https://www.openbsd.org" %> and <%= link_to Perl => "https://www.perl.org/" %>.
|
||||||
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<%= link_to $media->{download} => begin %>
|
<%= link_to $media->{download} => begin %>
|
||||||
<%= image $media->{download} %>
|
<%= image $media->{download} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
% for my $t (@$tags) {
|
% for my $t (@$tags) {
|
||||||
<%= link_to "$t->{name} ($t->{count})" => $t->{uri} %>
|
<%= link_to "$t->{name} ($t->{count})" => $t->{uri} %>
|
||||||
% }
|
% }
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user