Sha256: f55ebeed256712a13b5083f705e86ce515171e2298f788a95e1227e0933c6f49
Contents?: true
Size: 553 Bytes
Versions: 6
Compression:
Stored size: 553 Bytes
Contents
module Dashing module Generators class WidgetGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../../templates', __FILE__) desc 'Creates a new Dashing widget.' def widget template 'widgets/new.html', "#{Dashing.config.widgets_views_path}#{file_name}.html" template 'widgets/new.scss', "#{Dashing.config.widgets_css_path}/widgets/#{file_name}.scss" template 'widgets/new.coffee', "#{Dashing.config.widgets_js_path}/widgets/#{file_name}.coffee" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems