chai = require 'chai' assert = chai.assert expect = chai.expect should = chai.should() tumble = require('../lib/parser') test_data = [ { 'input': '', 'output': '', 'description': "no input" } { 'input': '', 'output': '', 'description': "just text" } { 'input': '

{name}

' 'output': '

Elf Sternberg

' 'data': {'name': 'Elf Sternberg'}, 'description': "a simple substitution" } { 'input': '

{title} {name}

' 'output': '

Mr. Elf Sternberg

' 'data': {'name': 'Elf Sternberg', 'title': 'Mr.'}, 'description': "two simple substitutions" } { 'input': '