67 lines
2.1 KiB
Django/Jinja
67 lines
2.1 KiB
Django/Jinja
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
<xsl:output method="xml" omit-xml-declaration="yes" />
|
|
<xsl:template match="/*">
|
|
{% set newline = "<xsl:text disable-output-escaping='yes'>\n</xsl:text>" %}
|
|
{% set async = "media=\"none\" onload=\"if(media!='all')media='all'\"" %}
|
|
|
|
<html>
|
|
|
|
{% filter replace(">", ">foobarhuehuehue")
|
|
| replace("<", "<xsl:text disable-output-escaping='yes'><</xsl:text>")
|
|
| replace(">foobarhuehuehue", "<xsl:text disable-output-escaping='yes'>></xsl:text>")
|
|
| replace("\n", newline) %}
|
|
|
|
<head>
|
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.13.1/js-yaml.min.js"></script>
|
|
<script type="text/javascript" src="https://mozilla.github.io/nunjucks/files/nunjucks.min.js"></script>
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/9.1.0/markdown-it.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" {{async}}/>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" {{async}}/>
|
|
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css" {{async}}/>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" {{async}}/>
|
|
<link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css" {{async}}/>
|
|
|
|
<title>Status Card</title>
|
|
|
|
</head>
|
|
{% endfilter %}
|
|
|
|
<body content_type="html5">
|
|
|
|
<style type="text/css">
|
|
{{ css_data.strip() }}
|
|
</style>
|
|
|
|
{{ newline*2 }}
|
|
|
|
<script type="text/html" id="yaml_data">
|
|
<xsl:value-of select="yaml_data"/>
|
|
</script>
|
|
|
|
{{ newline*2 }}
|
|
|
|
<script type="text/javascript">
|
|
var jinja_template =
|
|
{{ jinja_data.strip() | tojson | replace("\\n", "\\n\" +\n\"") }};
|
|
</script>
|
|
|
|
{{ newline*2 }}
|
|
|
|
<script type="text/javascript">
|
|
{{ js_data.strip()
|
|
| replace(">", ">foobarhuehuehue")
|
|
| replace("<", "<xsl:text disable-output-escaping='yes'><</xsl:text>")
|
|
| replace(">foobarhuehuehue", "<xsl:text disable-output-escaping='yes'>></xsl:text>") }}
|
|
</script>
|
|
|
|
{{ newline*2 }}
|
|
|
|
</body>
|
|
{{ newline }}
|
|
</html>
|
|
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|