Widget for code includes + sass

This commit is contained in:
johndmulhausen
2016-03-01 18:17:31 -08:00
parent 49e40dd65e
commit 1b6a08e693
5 changed files with 26 additions and 40 deletions
+9
View File
@@ -0,0 +1,9 @@
{% capture samplecode %}{% include_relative {{include.file}} %}{% endcapture %}
{% capture mysample %}
```{{include.language}}
{{ samplecode | raw | strip }}
```
{% endcapture %}
<p>&nbsp;</p>
<table class="includecode"><thead><tr><th><a href="{{include.ghlink}}"><code>{{include.file}}</code></a></th></tr></thead>
<tr><td>{{ mysample | markdownify }}</td></tr></table>