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:

  1. View, at “#BASE_PATH/app/assets/views/view.html.haml”

    A Haml file with a single line of boilerplate copy.

  2. JavaScript file, at “#BASE_PATH/app/javascripts/view.js”

    A complete set of the basic JavaScript functions needed to execute a page.

  3. Stylesheet, at “#BASE_PATH/app/stylesheets/view.css”

    A blank CSS file.

  4. 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.

  5. Modification

    Currently the only modification to any existing files is the creation of a ‘launcher’ method in “#BASE_PATH/app/javascripts/launcher.js”

  6. 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