summaryrefslogtreecommitdiff
path: root/buildscripts/apigen/pradosoft/source.latte
blob: 7eeffe3cd12da834144c1d4989fbc64b6af0d13d (plain)
1
2
3
4
5
6
7
8
9
10
{layout '@layout.latte'}
{var $robots = false}

{block title}File {$fileName}{/block}

{block content}
{var $lineRegex = '~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*(?:\\n|$))~'}
<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span class="l"><a href="#$2">$1</a></span>'|noescape}</code></pre>
<pre class="code"><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l">$3</span>'|noescape}</code></pre>
{/block}