Skip to content
Taritsyn edited this page May 29, 2024 · 3 revisions

BundleTransformer.Hogan contains one translator-adapter - HoganTranslator (supports the Hogan version 3.0.2). This adapter makes translation of Mustache templates to JS code. Also contains the HoganAssetHandler debugging HTTP handler, which is responsible for text output of translated Mustache asset.

As a JS engine is used the JavaScript Engine Switcher library. For correct working of this module, you need to install one of the following NuGet packages:

After package is installed and JS engine is registered, need set a name of JS engine (for example, MsieJsEngine) to the name attribute of /configuration/bundleTransformer/hogan/jsEngine configuration element in the Web.config file.

To use a debugging HTTP handlers in the IIS Classic mode (this also applies to the XSP web server for Mono), you need add to the /configuration/system.web/httpHandlers element of the Web.config file a following code:

<add path="*.mustache" verb="GET"
  type="BundleTransformer.Hogan.HttpHandlers.HoganAssetHandler, BundleTransformer.Hogan" />