Hey, I am using Jekyll to power a documentation microsite for a
project. And our app's theming API is built from Liquid as is Jekyll's
rendering system. This seems to make it impossible to actually write
the documentation since liquid tries to render any code block I try to
write for documentation - is there any existing way to enclose liquid
markup in a block that tells Liquid to not render the contents of the
block?
The custom Jekyll method I've written is below but it doesn't stop the
parsing it just presents whatever is passed within the block for
parsing - actually not useful :(
I can't be the only person out there with this problem (documenting
liquid markup within a liquid environment). Any thoughts?
---
module Jekyll
class SkipBlock < Liquid::Block
def render(context)
return super
end
end
end
Liquid::Template.register_tag('skip', Jekyll::SkipBlock)
---
And ideally, I'd be able to then just enclose liquid tags thusly:
{% skip %}
<pre>
<html>
<body>
<ol id="portfolios">
{% for portfolio in portfolios %}
<li>{{
portfolio.name }}</li>
{% endfor %}
</ol>
</body>
</html>
</pre>
{% endskip %}
---
Thanks again
Dylan