Modstache.options

Modstache.options is used to modify the default options.

API call

var options = Modstache.options({ modified properties });

Returns The default options.

The following options can be defined through Modstache.options

  • removeStache (false) - remove the stache attribute in the processed fragment
  • escape (true) - process replacement values for valid HTML text while disabling scripts
  • translate: (null) - object with property mappings
  • alwaysSetTranslatedProperty (false) - make sure property is defined if specified in translation object
  • reactive (true) - modify data object to affect target fragment when changed
  • stache ('{}') - name of the attribute to use for stache replacement specification