Module StaticMatic::RenderMixin
In: lib/staticmatic/mixins/render.rb

Methods

Public Instance methods

clear all scope variables except @staticmatic

Generate html from source file: generate_html("index")

Generates html from the passed source string

generate_html_from_template_source("%h1 Welcome to My Site") -> "<h1>Welcome to My Site</h1>"

Pass a block containing a string to yield within in the passed source:

generate_html_from_template_source("content:\n= yield") { "blah" } -> "content: blah"

Returns a raw template name from a source file path: source_template_from_path("/path/to/site/src/stylesheets/application.sass") -> "application"

[Validate]