From 1da6d33873283a73f21982f428926e2f8069109a Mon Sep 17 00:00:00 2001 From: mkantor Date: Thu, 12 Aug 2010 13:45:49 -0700 Subject: [PATCH] Migrated from liquid-for-designers v3 --- Liquid-for-Designers.textile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Liquid-for-Designers.textile b/Liquid-for-Designers.textile index 3764d3c..b4d44c3 100644 --- a/Liquid-for-Designers.textile +++ b/Liquid-for-Designers.textile @@ -3,7 +3,7 @@ There are two types of markup in liquid: Output and Tag. * Output is surrounded by
 {{ two curly brackets }} 
* Tags are surrounded by
 {% a curly bracket and a percent %} 
-h2. Output +h1. Output Here is a simple example of Output: @@ -24,8 +24,22 @@ Hello {{ '*tobi*' | textilize | upcase }} Hello {{ now | date: "%Y %h" }} +h3. Standard Filters -h2. Tags +* **capitalize** - capitalize words in the input sentence +* **date** - reformat a date ("syntax reference":http://liquid.rubyforge.org/classes/Liquid/StandardFilters.html#M000012) +* **downcase** - convert an input string to downcase +* **first** - get the first element of the passed in array +* **join** - join elements of the array with certain character between them +* **last** - get the last element of the passed in array +* **size** - return the size of an array or string +* **sort** - sort elements of the array +* **strip_html** - strip html from string +* **truncate** - truncate a string down to x characters +* **truncatewords** - undocumented +* **upcase** - convert a input string to UPCASE + +h1. Tags Tags are for the logic in your template. New tags are very easy to code and I hope to get many contributions to the standard tag library after releasing this code.