Skip to content

Commit

Permalink
More work on templates files
Browse files Browse the repository at this point in the history
  • Loading branch information
MirkoCindric committed Mar 17, 2010
1 parent 20f3412 commit 2eb5201
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Expand Up @@ -9,13 +9,19 @@ def initialize(runtime_args, runtime_options = {})
end

def manifest
# record do |m|
# m.directory 'app/views/layouts'
# m.directory 'public/stylesheets/sass'
#
# m.template "layout.html.haml", "app/views/layouts/#{file_name}.html.haml"
# m.file "stylesheet.sass", "public/stylesheets/sass/#{file_name}.sass"
# end
record do |m|
m.directory 'app/views/users'

#User files

m.file "users/new.html.haml", "app/views/users/new.html.haml"
m.file "users/edit.html.haml", "app/views/users/edit.html.haml"
m.file "users/show.html.haml", "app/views/users/show.html.haml"
m.file "users/_form.html.haml", "app/views/users/_form.html.haml"

m.file "controllers/users_controller.rb", "app/controllers/users_controller.rb"

end
end

# def file_name
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions sentia-generators.gemspec
Expand Up @@ -23,6 +23,12 @@ Gem::Specification.new do |s|
"README.rdoc",
"Rakefile",
"lib/sentia-generators.rb",
"rails_generators/sentia_authentication/USAGE",
"rails_generators/sentia_authentication/sentia_authentication_generator.rb",
"rails_generators/sentia_authentication/templates/users/_form.html.haml",
"rails_generators/sentia_authentication/templates/users/edit.html.haml",
"rails_generators/sentia_authentication/templates/users/new.html.haml",
"rails_generators/sentia_authentication/templates/users/show.html.haml",
"rails_generators/sentia_layout/USEAGE",
"rails_generators/sentia_layout/sentia_layout_generator.rb",
"rails_generators/sentia_layout/templates/layout.html.haml",
Expand Down

0 comments on commit 2eb5201

Please sign in to comment.