I'm trying to build a style guide in jade + prismjs + angular. It will have jade code examples. So I need some of my jade to "stay jade." For example:
//- source.jade
.description A component
pre.code-example
code.language-jade
.my-component
.my-component-title Hello
.my-component-body World
I want this to render to
//- rendered.html
<div class="description">A component</div>
<pre class="code-example">
<code class="language-jade">
.my-component
.my-component-title Hello
.my-component-body World
</code>
</pre>
Is there a way to do tell jade to just leave the contents of code.language-jade
alone?
I'll also consider completely different approaches. Jade as the 'outer' template language is non-negotiable, and it has to work in angular. I'm only using prismjs because my previous choice (highlighterjs) doesn't support jade.
Thx.