Define today variable for liquid #1055
This commit is contained in:
parent
8478e6a115
commit
abfc04973e
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue