Run an include through a textile filter?
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)?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Steve Smith on 17 Feb, 2011 10:02 PM
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 }}
3 Posted by Eli Dupuis on 17 Feb, 2011 10:10 PM
Awesome! Thanks for the tip—works great.
John Nunemaker closed this discussion on 19 Feb, 2011 05:58 PM.