Skip to content

Commit

Permalink
Merge pull request #256 from Raku/add_next_input_to_default_templates
Browse files Browse the repository at this point in the history
Add previously undocumented blocks to generic templates
  • Loading branch information
dontlaugh committed Jun 4, 2023
2 parents bd4b329 + e9815c4 commit 5deceae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Website/templates/01-default.raku
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ use ProcessedPod;
'<p>' ~ %prm<contents> ~ '</p>'
},
'format-l' => sub ( %prm, %tml ) {
# type = local: <link-label> -> <target>#<place> | <target>.html
# type = local: <link-label> -> <target>#<place> | <target>
# type = internal: <link-label> -> #<place>
# type = external: <link-label> -> <target>
my $trg;
Expand Down Expand Up @@ -130,7 +130,7 @@ use ProcessedPod;
~ "]</a></sup>\n"
},
'format-p' => sub (%prm, %tml) {
'<div><pre>'
'<div class="pod-placement"><pre>'
~ (%prm<contents> // '').=trans(['<pre>', '</pre>'] => ['&lt;pre&gt;', '&lt;/pre&gt;'])
~ "</pre></div>\n"
},
Expand Down Expand Up @@ -194,6 +194,12 @@ use ProcessedPod;
'output' => sub (%prm, %tml) {
'<pre class="pod-output">' ~ (%prm<contents> // '') ~ '</pre>'
},
'input' => sub (%prm, %tml) {
'<pre class="pod-input">' ~ (%prm<contents> // '') ~ '</pre>'
},
'nested' => sub (%prm, %tml) {
'<div class="pod-nested">' ~ (%prm<contents> // '') ~ '</div>'
},
'page-top' => sub (%prm, %tml) {
'<div class="pod-content ' ~ (%prm<page-config><class> // '') ~ '">'
},
Expand Down

0 comments on commit 5deceae

Please sign in to comment.