summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:14:35 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:14:35 +0100
commit93119091893c2f2bf396785e6bd7dcbb9b4f207d (patch)
tree408e37ec0bf4ebb1e5427f37b1e12344f70eae9c /xsl
parentf6fc9fa292e8da56fe7078f9ac5bdfefa55abe94 (diff)
* Implement code highlighting using Prism
* Automatically build ousia.js
Diffstat (limited to 'xsl')
-rw-r--r--xsl/webpage.xsl9
1 files changed, 8 insertions, 1 deletions
diff --git a/xsl/webpage.xsl b/xsl/webpage.xsl
index b66a594..fcb5d8a 100644
--- a/xsl/webpage.xsl
+++ b/xsl/webpage.xsl
@@ -79,6 +79,7 @@
</p>
</section>
</footer>
+ <script src="script/ousia.js"/>
</body>
</html>
</xsl:template>
@@ -225,7 +226,13 @@
</xsl:template>
<xsl:template match="webpage:code">
- <pre class="code">
+ <pre>
+ <xsl:attribute name="class">code</xsl:attribute>
+ <xsl:if test="@lang != ''">
+ <xsl:attribute name="data-lang">
+ <xsl:value-of select="@lang"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates select="webpage:*"/>
</pre>
</xsl:template>