Run an include through a textile filter?

Eli Dupuis's Avatar

Eli Dupuis

17 Feb, 2011 09:22 PM via web

Is there any way to run an include through the Textile filter?

Or is there a better way to accomplish a global chunk of content that the client could update easily (as in Textile, not HTML)?

  1. Support Staff 2 Posted by Steve Smith on 17 Feb, 2011 10:02 PM

    Steve Smith's Avatar

    Hi Eli:

    The easiest way to do this is to create the extra block of content as a piece of Template Data on your Home page, and then use that page and data in the include you're using, instead of the direct text. Something like this in your include:

    {{ '/' | item_from_path | assign_to: 'home' }}
    {{ home.data.global_content }}

  2. 3 Posted by Eli Dupuis on 17 Feb, 2011 10:10 PM

    Eli Dupuis's Avatar

    Awesome! Thanks for the tip—works great.

  3. John Nunemaker closed this discussion on 19 Feb, 2011 05:58 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

17 May, 2012 10:45 PM
20 Mar, 2012 05:05 PM
26 Apr, 2012 01:40 AM
07 Mar, 2012 04:42 PM