Templating engine for tickets