You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mustache has an extensive spec which doubles as a test-suite. Each test comes with sample data, a template and the expected output, all formatted in standard YAML (even the strange {key: value} syntax is standard YAML). The procedure for conformance testing is also described in the specs. Thus this should be a matter of loading the YAML files, iterating over all tests, setting up context and partials appropriately, pushing the template through the render function and comparing the result with the sample output.
The text was updated successfully, but these errors were encountered:
Mustache has an extensive spec which doubles as a test-suite. Each test comes with sample data, a template and the expected output, all formatted in standard YAML (even the strange
{key: value}
syntax is standard YAML). The procedure for conformance testing is also described in the specs. Thus this should be a matter of loading the YAML files, iterating over all tests, setting up context and partials appropriately, pushing the template through therender
function and comparing the result with the sample output.The text was updated successfully, but these errors were encountered: