Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template = "Today is $date_string{ today }"
- result = cosmo.fill(template, {
- today = os.time(),
- date_string = function (args)
- return os.date("%B %d, %Y", args[1])
- end
- })
- print(result) -- Today is October 23, 2009
Add Comment
Please, Sign In to add comment