masterview_plugin_generator 0.3.3 → 0.3.4

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/templates/masterview.rake +7 -2
  2. metadata +2 -2
@@ -31,7 +31,7 @@ namespace :mv do
31
31
  end
32
32
  end
33
33
 
34
- desc 'Rebuild/update template imports, specify TEMPLATE=foo/bar.html'
34
+ desc 'Rebuild/update html template imports, specify TEMPLATE=foo/bar.html'
35
35
  task :rebuild do
36
36
  raise "Usage: rake mv:rebuild TEMPLATE=foo/bar.html" unless ENV['TEMPLATE']
37
37
  path = ENV['TEMPLATE']
@@ -47,7 +47,7 @@ namespace :mv do
47
47
  end
48
48
  end
49
49
 
50
- desc 'Rebuild all outdated template imports'
50
+ desc 'Rebuild all outdated html template imports'
51
51
  task :rebuild_all do
52
52
  files_rebuilt = []
53
53
  MasterView::TemplateSpec.scan do |template_spec, content_hash|
@@ -84,7 +84,12 @@ namespace :mv do
84
84
  puts dst_file+' created'
85
85
  end
86
86
 
87
+
87
88
  desc "Run parser manually on masterview html files to parse and generate the erb/rhtml files"
89
+ task :generate_all_rhtml => [:parse] # call the original parse task
90
+
91
+ # left in for backward compatibility, :generate_all_rhtml is more meaningful.
92
+ # might deprecate in future having :generate_all_rhtml call this functionality directly
88
93
  task :parse do
89
94
  MasterView::IOMgr.template.find(:pattern => MasterView::TemplateFilenamePattern ) do |mio|
90
95
  puts 'Generated erb/rhtml files from '+mio.pathname.to_s
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: masterview_plugin_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.3
7
- date: 2007-05-28 00:00:00 -05:00
6
+ version: 0.3.4
7
+ date: 2007-08-18 00:00:00 -05:00
8
8
  summary: A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Plugin Generator for GEM
9
9
  require_paths:
10
10
  - .