Skip to content

Instantly share code, notes, and snippets.

require 'luarocks.require'
require 'cosmo'
require 'mustache'
-- This needs the Cosmo in source control to work (because of the nested long strings and
-- cosmo.last - install with luarocks install cosmo --from=http://luarocks.org/repositories/rocks-cvs
do
local template = "$cards[[$if{show}[[$rank of $suit$if{not _last}[[, ]]]]]]"
local view = {