summaryrefslogtreecommitdiff
path: root/buildscripts/apigen/pradosoft/source.latte
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/apigen/pradosoft/source.latte')
-rw-r--r--buildscripts/apigen/pradosoft/source.latte20
1 files changed, 6 insertions, 14 deletions
diff --git a/buildscripts/apigen/pradosoft/source.latte b/buildscripts/apigen/pradosoft/source.latte
index 9c46f920..7eeffe3c 100644
--- a/buildscripts/apigen/pradosoft/source.latte
+++ b/buildscripts/apigen/pradosoft/source.latte
@@ -1,18 +1,10 @@
-{*
-ApiGen 2.8.0 - API documentation generator for PHP 5.3+
-
-Copyright (c) 2010-2011 David Grudl (http://davidgrudl.com)
-Copyright (c) 2011-2012 Jaroslav Hanslík (https://github.com/kukulich)
-Copyright (c) 2011-2012 Ondřej Nešpor (https://github.com/Andrewsville)
-
-For the full copyright and license information, please view
-the file LICENSE.md that was distributed with this source code.
-*}
{layout '@layout.latte'}
{var $robots = false}
-{block #title}File {$fileName}{/block}
+{block title}File {$fileName}{/block}
-{block #content}
-<pre><code>{!$source|sourceAnchors|replaceRE:'~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*\\n)?~','<span id="$2" class="l"><a class="l" href="#$2">$1</a>$3</span>'}</code></pre>
-{/block} \ No newline at end of file
+{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}