class Dashing::Generators::WidgetGenerator

Public Instance Methods

widget() click to toggle source
# File lib/generators/dashing/widget_generator.rb, line 9
def widget
  template 'widgets/new.html',    Dashing.config.widgets_views_path.join("#{file_name}.html")
  template 'widgets/new.scss',    Dashing.config.widgets_css_path.join('widgets', "#{file_name}.scss")
  template 'widgets/new.coffee',  Dashing.config.widgets_js_path.join('widgets', "#{file_name}.coffee")
end