Skip to content

Instantly share code, notes, and snippets.

@airhorns
Created December 20, 2010 18:17
Show Gist options
  • Save airhorns/748748 to your computer and use it in GitHub Desktop.
Save airhorns/748748 to your computer and use it in GitHub Desktop.
module Toto
module Template
def to_html page, config, &blk
path = ([:layout, :repo].include?(page) ? Paths[:templates] : Paths[:pages])
config[:to_html].call(path, page, self, blk)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment