StructureJS

0.15.2

A class based utility library for building modular and scalable web platform applications. Features opt-in classes and utilities which provide a solid foundation and toolset to build your next project.

TemplateFactory Class

Module: util
Parent Module: StructureJS

A helper class to provide a convenient and consistent way to render templates.

Index

Show:

Properties

Methods

Properties

HANDLEBARS String public final static

A constant value for using Handlebars templates. This is the default template engine.

templateEngine String public static

Sets the template engine type for this TemplateFactory class. The default is TemplateFactory.HANDLEBARS

Default: TemplateFactory.HANDLEBARS

templateNamespace String public static

The global namespace for pre-compiled templates.

Default: 'JST'

UNDERSCORE String public final static

A constant value for using Underscore or Lodash templates.

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index

Methods

create
(
  • templatePath
  • [data=any]
)
String public static

Creates a template.

Parameters:

  • templatePath Any
  • [data=any] Object optional

Returns:

Example:

 TemplateFactory.create('templateName', {some: 'data'});

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index