Define today variable for liquid #1055

This commit is contained in:
Holger Just 2012-07-02 21:05:54 +02:00
parent a4fbb15f6c
commit 760df0ae35
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ module ChiliProject
vars.uniq.sort
end
register "today" do
Date.today.to_s
end
# DEPRACATED: This is just a hint on how to use Liquid introspection
register "macro_list",
"Use '{{ variables | to_list: \"Variables:\" }}' to see all Liquid variables and '{{ tags | to_list: \"Tags:\" }}' to see all of the Liquid tags."