Tabnine Logo
AbstractTemplateEngine
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractTemplateEngine
in
org.jbake.template

Best Java code snippets using org.jbake.template.AbstractTemplateEngine (Showing top 4 results out of 315)

origin: jbake-org/jbake

  private void doInclude(Map<String, Object> model, String templateName) throws Exception {
    AbstractTemplateEngine engine = (AbstractTemplateEngine) model.get("renderer");
    Writer out = (Writer) model.get("out");
    engine.renderDocument(model, templateName, out);
    model.put("out", out);
  }
}
origin: jbake-org/jbake

AbstractTemplateEngine engine = renderers.getEngine(ext);
if (engine != null) {
  engine.renderDocument(model, templateName, writer);
} else {
  LOGGER.error("Warning - No template engine found for template: {}", templateName);
origin: org.jbake/jbake-core

  private void doInclude(Map<String, Object> model, String templateName) throws Exception {
    AbstractTemplateEngine engine = (AbstractTemplateEngine) model.get("renderer");
    Writer out = (Writer) model.get("out");
    engine.renderDocument(model, templateName, out);
    model.put("out", out);
  }
}
origin: org.jbake/jbake-core

AbstractTemplateEngine engine = renderers.getEngine(ext);
if (engine != null) {
  engine.renderDocument(model, templateName, writer);
} else {
  LOGGER.error("Warning - No template engine found for template: {}", templateName);
org.jbake.templateAbstractTemplateEngine

Javadoc

A template is responsible for converting a model into a rendered document. The model consists of key/value pairs, some of them potentially converted from a markup language to HTML already. An appropriate rendering engine will be chosen by JBake based on the template suffix. If contents is not available in the supplied model, a template has access to the document database in order to complete the model. It is in particular interesting to optimize data access based on the underlying template engine capabilities. Note that some rendering engines may rely on a different rendering model than the one provided by the first argument of #renderDocument(java.util.Map,String,java.io.Writer). In this case, it is the responsibility of the engine to convert it.

Most used methods

  • renderDocument

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • setContentView (Activity)
  • putExtra (Intent)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now