From ff06aeea32bc3afdf31e420a6cb3272eff99d5ef Mon Sep 17 00:00:00 2001 From: RichMorin Date: Thu, 12 Aug 2010 13:45:54 -0700 Subject: [PATCH] Migrated from liquid-for-programmers v9 --- Liquid-for-Programmers.textile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Liquid-for-Programmers.textile b/Liquid-for-Programmers.textile index 6a72511..493c5ac 100644 --- a/Liquid-for-Programmers.textile +++ b/Liquid-for-Programmers.textile @@ -9,10 +9,10 @@ For an overview of the Liquid syntax, please read [[Liquid for Designers]]. @template.render( 'name' => 'tobi' ) # Renders the output => "hi tobi" -The parse step creates a fully compiled template which can be re-used as often as you like. +The @parse@ step creates a fully compiled template which can be re-used as often as you like. You can store it in memory or in a cache for faster rendering later. -All parameters you want Liquid to work with have to be passed as parameters to the render method. +All parameters you want Liquid to work with have to be passed as parameters to the @render@ method. Liquid does not know about your Ruby local, instance, and global variables. h2. Extending Liquid @@ -62,7 +62,7 @@ Once the filter is globally registered, you can simply use it: h3. Create your own tags -To create a new tag, simply inherit from Liquid::Tag and register your block with Liquid::Template. +To create a new tag, simply inherit from @Liquid::Tag@ and register your block with @Liquid::Template@.

   class Random < Liquid::Tag                                             
@@ -88,7 +88,7 @@ h3. Create your own tag blocks
 
 All tag blocks are parsed by Liquid.
 To create a new block,
-you just have to inherit from Liquid::Block and register your block with Liquid::Template.
+you just have to inherit from @Liquid::Block@ and register your block with @Liquid::Template@.
 
 

   class Random < Liquid::Block