Sha256: 49ae63f5b744e8705fc7865a0f9edfc1419ca87545905b46f7e3c4ebbd02a0c1

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

class JspTemplateEngine < VraptorScaffold::Base

  def self.source_root
    File.join(File.dirname(__FILE__), "templates", "jsp")
  end

  def initialize(project_path)
    super
    self.destination_root=(project_path)
  end

  def configure
    template("../decorators.erb", File.join(Configuration::WEB_INF, "decorators.xml"))
    copy_file("main.jsp", File.join(Configuration::WEB_INF, "decorators", "main.jsp"))
    empty_directory File.join(Configuration::WEB_INF, "jsp")
  end

  def extension
    "jsp"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vraptor-scaffold-0.0.4 lib/generators/app_generator/jsp_template_engine.rb
vraptor-scaffold-0.0.3 lib/generators/app_generator/jsp_template_engine.rb
vraptor-scaffold-0.0.2 lib/generators/app_generator/jsp_template_engine.rb
vraptor-scaffold-0.0.1 lib/generators/app_generator/jsp_template_engine.rb