Skip to content

Instantly share code, notes, and snippets.

@mascarenhas
Created October 22, 2009 21:17
Show Gist options
  • Save mascarenhas/216342 to your computer and use it in GitHub Desktop.
Save mascarenhas/216342 to your computer and use it in GitHub Desktop.
template = "$cards[[$rank of $suit, ]]"
view = {
{ rank = "Ace", suit = "Spades" },
{ rank = "10", suit = "Hearts" },
}
result = cosmo.fill(template, { cards = view })
print(result) -- Ace of Spades, 10 of Hearts,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment