 
 TEMPLATES = {}
 
-module.exports = (code, cached=true)->
+module.exports = (code, config=true)->
+    if typeof cached is 'boolean'
+        config =
+            cached: config || config isnt false
 
     if typeof code is 'function'
         code = '('+code.toString()+').call(this);'
 
-    if !cached || !TEMPLATES[hash = floyd.tools.strings.hash code]
+    if !config.cached || !TEMPLATES[hash = floyd.tools.strings.hash code]
 
         ##
         html    = null


        ##

        if cached
            TEMPLATES[hash] = template

        return template

                html += "<![endif]-->"
                return

        if config.tags
            for tag in config.tags
                compileTag tag, false # don't self close

        if config.tagsSelfClosing
            for tag in tagsSelfClosing
                compileTag tag, true # self close

        for tag in tagsNormal
            compileTag tag, false # don't self close

