JSON-based PHP template engine