public class Asciidoc extends JRubyTransformer<Asciidoc>
Transformer that translates AsciiDoc files| Modifier | Constructor and Description |
|---|---|
protected |
Asciidoc(boolean fullDocument)
Creates a
Asciidoc instance. |
| Modifier and Type | Method and Description |
|---|---|
Asciidoc |
addStylesheet(String url)
Adds a CSS stylesheet to the rendered HTML document.
|
static Asciidoc |
fullDocument()
Create a
Transformer instance that renders a full markdown HTML document structure. |
List<String> |
getLoadPaths()
Return the load paths to use for
ScriptingContainer.setLoadPaths(List). |
protected Class<Asciidoc> |
getTransformerType() |
static Asciidoc |
partialDocument()
Create a
Transformer instance that renders markdown without adding the 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. |
Asciidoc |
self()
Just returns the current object as the correct type for make the fluent builder work with subclasses.
|
Asciidoc |
withTitle(String title)
Sets the title of the rendered HTML document.
|
compatVersion, compileMode, transformtransformprotected Asciidoc(boolean fullDocument)
Asciidoc instance.public static Asciidoc fullDocument()
Transformer instance that renders a full markdown HTML document structure.public static Asciidoc partialDocument()
Transformer instance that renders markdown without adding the HTML scaffold like a body or head.public Asciidoc withTitle(String title)
public Asciidoc addStylesheet(String url)
public List<String> getLoadPaths()
JRubyTransformerScriptingContainer.setLoadPaths(List).getLoadPaths in class JRubyTransformer<Asciidoc>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<Asciidoc>public Asciidoc self()
JRubyTransformerself in class JRubyTransformer<Asciidoc>protected void prepareContainer(org.jruby.embed.ScriptingContainer container)
prepareContainer in class JRubyTransformer<Asciidoc>protected Class<Asciidoc> getTransformerType()
getTransformerType in class JRubyTransformer<Asciidoc>Copyright © 2015 OCPsoft. All Rights Reserved.