Sha256: 29008195c525b7912148ac2435fab1eea25bbe1c126aae6a8d7266140fccbe6c
Contents?: true
Size: 534 Bytes
Versions: 9
Compression:
Stored size: 534 Bytes
Contents
namespacedTemplates = -> h = {} for name, func of window.HandlebarsTemplates if name.match( /\// ) nesting = h parts = name.split('/') while (part = parts.shift()) if parts.length == 0 nesting[part] = func else nesting[part] ||= {} nesting = nesting[part] else h[name] = func h _.extend( window.App, { mobile: navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) Templates: namespacedTemplates().auto_error Views: {} } )
Version data entries
9 entries across 9 versions & 1 rubygems