Skip to content

Instantly share code, notes, and snippets.

@hellerve
Last active October 20, 2015 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellerve/4bfa015de1e0c7102dfa to your computer and use it in GitHub Desktop.
Save hellerve/4bfa015de1e0c7102dfa to your computer and use it in GitHub Desktop.
The poor man's templating engine in zepto
(define (templating template values)
(hash:keys-reduce (lambda (template k) (string:substitute template (++ "{{" k "}}") (values k))) template values))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment