masterview 0.0.12 → 0.0.13

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 0.0.13 - April 27, 2006 - Cleaned up generated template improving indentation and simplified css. Added design time css to hide sections. Preview javascript was changed to be less invasive to generated code.
2
+
1
3
  0.0.12 - April 24, 2006 - Fixed generator to use Controller name for files it generates, added attr directive, added more default styles to css, added styles to generator templates
2
4
 
3
5
  0.0.11 - April 22, 2006 - Changed the main load file to rescue LoadErrors from log4r and tidy
data/README CHANGED
@@ -61,11 +61,13 @@ This will copy entire MasterView system into your vendor/plugin/masterview direc
61
61
 
62
62
  You may add MasterView attributes to existing (x)html or you may use the masterview generator to create a complete working application. The generator can create controllers, models, and the MasterView template file similar to how the built-in generator works. Simply change directory to your rails application and run the following
63
63
 
64
- script/generate masterview YourModelName [YourControllerName]
64
+ script/generate masterview YourModelName [YourControllerName] [--showAll | --showOnlyNew | --showOnlyList]
65
+
66
+ To make it easier to use this template at design time, some design time css stylesheets are included in the file to hide all sections except one. By default the NEW section is the only one shown. Other options are --showAll which makes all sections visible or --showOnlyList which shows only the LIST section. When you are editing the masterview file you may comment/uncomment one of the other css files to show a different section.
65
67
 
66
68
  Once it is done generating, the generated MasterView template file will be created in app/views/masterview/YourModelName.html. This file is html and can be edited with any standard html editor. The rails specific logic is contained in simple attributes which are ignored by html editors. The syntax for these attributes is heavily derived from the rails helper tags themselves so it should feel natural to the rails developer.
67
69
 
68
- Another interesting thing to know is that while all of the pages for this Model have been bundled up into one html file for ease of editing, at runtime this template gets rendered into the exact same layouts and partials that you would use if you were building from scratch. Its jsut that now you can see what your pages will render like in your wysiwyg html editor and change and layout accordingly. Additionally MasterView supplies some javascript to show only one action view at time (list, new, show, edit, delete) so you can view in your browser without running in Rails. Dummy html can be included to improve the accuracy of the page which can be easily removed at runtime.
70
+ Another interesting thing to know is that while all of the pages for this Model have been bundled up into one html file for ease of editing, at runtime this template gets rendered into the exact same layouts and partials that you would use if you were building from scratch. Its jsut that now you can see what your pages will render like in your wysiwyg html editor and change and layout accordingly. Additionally MasterView supplies some javascript to show only one action view at time (list, new, show, edit, delete) so you can view in your browser without running in Rails. Dummy html can be included to improve the accuracy of the page which can be easily removed at runtime. To make it easier to work with in an editor, design time stylesheets are included in the file to allow you to hide all sections except the one you are working on, simply uncomment the appropriate stylesheet for the section you would like to work with.
69
71
 
70
72
  MasterView is designed to be easy for a developer and designer to work together. By keeping the template in an html friendly format, designers can apply style, layout changes, wording changes, without causing havoc on the rails view code. The designer can be involved at anytime during the development cycle including being able to change style and layout after the system is built. This is great for allowing design or wording changes without reinvolving the developers. One can even start from a designer created prototype and add MasterView tags to make it become real. Whichever way you prefer to work, MasterView accomodates you.
71
73
 
data/RELEASE_NOTES CHANGED
@@ -61,5 +61,7 @@ This will copy entire MasterView system into your vendor/plugin/masterview direc
61
61
 
62
62
  You may add MasterView attributes to existing (x)html or you may use the masterview generator to create a complete working application. The generator can create controllers, models, and the MasterView template file similar to how the built-in generator works. Simply change directory to your rails application and run the following
63
63
 
64
- script/generate masterview YourModelName [YourControllerName]
64
+ script/generate masterview YourModelName [YourControllerName] [--showAll | --showOnlyNew | --showOnlyList]
65
+
66
+ To make it easier to use this template at design time, some design time css stylesheets are included in the file to hide all sections except one. By default the NEW section is the only one shown. Other options are --showAll which makes all sections visible or --showOnlyList which shows only the LIST section. When you are editing the masterview file you may comment/uncomment one of the other css files to show a different section.
65
67
 
data/TODO ADDED
@@ -0,0 +1,7 @@
1
+ - create namespace for mv and publish, update generated files
2
+ - video
3
+ - wiki for site
4
+ - app for syntax
5
+ - include additional stylesheets
6
+ - ajax examples
7
+ - ajax table component
@@ -2,7 +2,7 @@ module MasterView
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 12
5
+ TINY = 13
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: masterview
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.12
7
- date: 2006-04-24 00:00:00 -05:00
6
+ version: 0.0.13
7
+ date: 2006-04-27 00:00:00 -05:00
8
8
  summary: A (x)html friendly template engine for rails with the power of layouts, and partials.
9
9
  require_paths:
10
10
  - lib
@@ -103,6 +103,7 @@ files:
103
103
  - RELEASE_NOTES
104
104
  - MIT-LICENSE
105
105
  - README
106
+ - TODO
106
107
  - init.rb
107
108
  test_files: []
108
109