Skip to content

Instantly share code, notes, and snippets.

@mascarenhas
Created October 22, 2009 21:23
Show Gist options
  • Save mascarenhas/216347 to your computer and use it in GitHub Desktop.
Save mascarenhas/216347 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment