Sha256: ca7ffbf5cef05adc611e75201d5e73133d1f3d29fb5b2d7cb7dda3e63f35b6a4
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
angular.module('templates', []). run(['$templateCache', function($templateCache) { <% environment.context_class.instance_eval { include ActionView::Helpers::JavaScriptHelper } app_root = File.expand_path('../../angular', __FILE__) templates = File.join(app_root, %w{templates ** *.slim}) Dir.glob(templates).each do |f| depend_on(f) key = f.gsub(%r(^#{app_root}/templates/),'').gsub(/.slim$/, "") content = environment.find_asset(f).body %> $templateCache.put("<%= key %>", "<%= escape_javascript(content) %>"); <% end %> }]);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brace-0.1.0 | templates/templates.js.erb |