Module: YMDP
- Defined in:
- lib/view.rb,
lib/ymdp_generator.rb
Overview
Generates a new view, with all the associated files relating to that view.
Creates the following files:
-
View, at “#BASE_PATH/app/assets/views/view.html.haml”
A Haml file with a single line of boilerplate copy.
-
JavaScript file, at “#BASE_PATH/app/javascripts/view.js”
A complete set of the basic JavaScript functions needed to execute a page.
-
Stylesheet, at “#BASE_PATH/app/stylesheets/view.css”
A blank CSS file.
-
Translation keys, at “#BASE_PATH/app/assets/yrb/en-US/new_view_en-US.pres”
A new translation file, with a heading and a subhead key.
-
Modification
Currently the only modification to any existing files is the creation of a ‘launcher’ method in “#BASE_PATH/app/javascripts/launcher.js”
-
Translation of new keys into all languages.
Translates the new keys into all languages and creates associated “.pres” files in the correct subdirectories.
Defined Under Namespace
Modules: Generator