Module | StaticMatic::RenderMixin |
In: |
lib/staticmatic/mixins/render.rb
|
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"