Sha256: 982e1e31711aee3820b0e5600fb4f871def620577c62ae1af7e8940315d84c4e
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
module StaticMatic module Builder class HTMLGenerator < BaseGenerator glob! "images", [] # No templates glob! "javascripts", [] # No templates glob! "stylesheets", site.extentions # Registered templates # Run the dynamic pages through actionpack site.dynamic_pages.each do |relative_path| output_name = site.rendered_ext(relative_path).gsub("pages/", "") template output_name.gsub('.', '_').to_sym, relative_path, output_name end # Copy static pages site.static_pages.each do |relative_path| output_name = relative_path.gsub("pages/", "") file output_name.gsub('.', '_').to_sym, relative_path, output_name end end add :build_html, HTMLGenerator end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tdreyno-staticmatic-2.9.0 | lib/staticmatic/builder/html.rb |