masterview_generator 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/masterview_generator.rb +9 -5
  2. metadata +2 -2
@@ -298,13 +298,17 @@ class MasterviewGenerator < Rails::Generator::NamedBase
298
298
  end
299
299
 
300
300
  def messages
301
- if full_options[:stylesheets]
302
- mess = <<-END
301
+ if full_options[:single_file]
302
+ unless full_options[:stylesheets]
303
+ mess = <<-END
303
304
  messages here - Note: Other page sections in this MasterView file are hidden at design time, disable the stylesheet &apos;extra/show_only_new.css&apos; or uncomment different extra/*.css to work with other page sections (other stylesheets are show_only_edit.css, show_only_show.css, show_only_list.css, show_only_destroy.css and they are commented out in this masterview file&apos;s head section)
304
- END
305
- else
305
+ END
306
+ else
307
+ mess = 'messages here'
308
+ end
309
+ else # multi-file
306
310
  mess = <<-END
307
- messages here - Note: Parts of these pages can be imported from other pages to allow for design time editing in full page context. View the MasterView Admin page, run the rake mv:list_all command, or view the source to learn which parts this file controls.
311
+ messages here - Note: Modify list.html template to edit layout, and message partials. Modify new.html if you want to edit the _form partial. Other templates import these partials to allow for design time editing in a full page context. View the MasterView Admin page, run the rake mv:list_all command, or view the source to learn which parts this particular template controls.
308
312
  END
309
313
  end
310
314
  mess
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: masterview_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
7
- date: 2006-06-30 00:00:00 -05:00
6
+ version: 0.2.3
7
+ date: 2006-07-05 00:00:00 -05:00
8
8
  summary: A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Generator for creating templates and scaffolding.
9
9
  require_paths:
10
10
  - .