Last active
October 20, 2015 16:16
-
-
Save hellerve/4bfa015de1e0c7102dfa to your computer and use it in GitHub Desktop.
The poor man's templating engine in zepto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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