diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-22 01:14:35 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-22 01:14:35 +0100 |
commit | 93119091893c2f2bf396785e6bd7dcbb9b4f207d (patch) | |
tree | 408e37ec0bf4ebb1e5427f37b1e12344f70eae9c /xsl | |
parent | f6fc9fa292e8da56fe7078f9ac5bdfefa55abe94 (diff) |
* Implement code highlighting using Prism
* Automatically build ousia.js
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/webpage.xsl | 9 |
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> |