Sha256: d135168371d8b3ccaee5631c05986704c210f35b3ac32518b1a32948b80d62f7

Contents?: true

Size: 1.3 KB

Versions: 20

Compression:

Stored size: 1.3 KB

Contents

{% comment%}<!--
The liquid_raw helper is a way to display raw liquid code, as opposed to parsing it.
Normally you'd use Liquid's built in 'raw' tag. 
The problem is GitHub Jekyll does not support the current Liquid release.
GitHub Jekyll supports the deprecated 'literal' tag.
Using one will break the other if you plan to deploy to GitHub pages.
  see: https://github.com/mojombo/jekyll/issues/425

Since I don't want to mess with Liquid versions, I'll just rewrite the way I 
intend to give liquid examples. It's not an elegant by any means:

Usage: 
  1) Define a 'text' variable with the block of liquid code you intend to display.
  2) Pass the text variable to include JB/liquid_raw

  example:
  {% capture text %}|.% for tag in tags_list %.|
    <li><a href="|.{ site.var.tags_path }.||.{ tag[0] }.|-ref">|.{ tag[0] }.| <span>|.{tag[1].size}.|</span></a></li>
  |.% endfor %.|

  |.% assign tags_list = null %.|{% endcapture %}    
  {% include JB/liquid_raw %}
  
  As seen here, you must use "|." and ".|" as opening and closing brackets.
-->{% endcomment%}

{% if site.JB.liquid_raw.provider == "custom" %}
  {% include custom/liquid_raw %}
{% else %}
  <pre><code>{{text | replace:"|.", "&#123;" | replace:".|", "&#125;" | replace:">", "&gt;" | replace:"<", "&lt;" }}</code></pre>
{% endif %}
{% assign text = nil %}

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
jmblog-theme-1.1.7 _includes/JB.old/liquid_raw
jmblog-theme-1.1.6 _includes/JB.old/liquid_raw
jmblog-theme-1.1.5 _includes/JB.old/liquid_raw
jmblog-theme-1.1.4 _includes/JB.old/liquid_raw
jmblog-theme-1.1.3 _includes/JB.old/liquid_raw
jmblog-theme-1.1.2 _includes/JB.old/liquid_raw
jmblog-theme-1.1.1 _includes/JB.old/liquid_raw
jmblog-theme-1.1 _includes/JB.old/liquid_raw
jmblog-theme-1.0 _includes/JB/liquid_raw
jmblog-theme-0.1.2 _includes/JB/liquid_raw
jmblog-theme-0.1.1 _includes/JB/liquid_raw
jmblog-theme-0.1.0 _includes/JB/liquid_raw
dextery-0.0.4a lib/dextery/template/_includes/JB/liquid_raw
dextery-0.0.4 lib/dextery/template/_includes/JB/liquid_raw
dextery-0.0.3c lib/dextery/template/_includes/JB/liquid_raw
delphivm-0.9.0 dvmimports.org/_includes/JB/liquid_raw
delphivm-0.8.1 dvmimports.org/_includes/JB/liquid_raw
delphivm-0.8.0 dvmimports.org/_includes/JB/liquid_raw
delphivm-0.7.7 dvmimports.org/_includes/JB/liquid_raw
delphivm-0.7.4 dvmimports.org/_includes/JB/liquid_raw