public class Textile extends JRubyTransformer<Textile>
Transformer that translates Textile markup into HTML.| Modifier | Constructor and Description |
|---|---|
protected |
Textile(boolean fullDocument) |
| Modifier and Type | Method and Description |
|---|---|
Textile |
addStylesheet(String url)
Adds a CSS stylesheet to the rendered HTML document.
|
static Textile |
fullDocument()
Create a
Transformer instance that renders a full HTML document structure. |
List<String> |
getLoadPaths()
Return the load paths to use for
ScriptingContainer.setLoadPaths(List). |
protected Class<Textile> |
getTransformerType() |
static Textile |
partialDocument()
Create a
Transformer instance that renders textile without adding HTML scaffold like a body or head. |
protected void |
prepareContainer(org.jruby.embed.ScriptingContainer container) |
Object |
runScript(org.jruby.embed.ScriptingContainer container)
This method must perform the transformation using the supplied
ScriptingContainer. |
Textile |
self()
Just returns the current object as the correct type for make the fluent builder work with subclasses.
|
Textile |
withTitle(String title)
Sets the title of the rendered HTML document.
|
compatVersion, compileMode, transformtransformpublic static Textile fullDocument()
Transformer instance that renders a full HTML document structure.public static Textile partialDocument()
Transformer instance that renders textile without adding HTML scaffold like a body or head.public Textile withTitle(String title)
public Textile addStylesheet(String url)
public List<String> getLoadPaths()
JRubyTransformerScriptingContainer.setLoadPaths(List).getLoadPaths in class JRubyTransformer<Textile>public Object runScript(org.jruby.embed.ScriptingContainer container)
JRubyTransformerScriptingContainer. The container is pre
initialized with a variable input which should be used by the script to perform the transformation.runScript in class JRubyTransformer<Textile>public Textile self()
JRubyTransformerself in class JRubyTransformer<Textile>protected void prepareContainer(org.jruby.embed.ScriptingContainer container)
prepareContainer in class JRubyTransformer<Textile>protected Class<Textile> getTransformerType()
getTransformerType in class JRubyTransformer<Textile>Copyright © 2015 OCPsoft. All Rights Reserved.