Support mustache partials in server-side templates
authorS Page <spage@wikimedia.org>
Tue, 7 Jul 2015 01:32:21 +0000 (18:32 -0700)
committerS Page <spage@wikimedia.org>
Tue, 7 Jul 2015 03:13:45 +0000 (20:13 -0700)
commitc235e0717e275b7584983577dcf00971d4c40a7c
tree08842820f0a4cf9a4f85c2b5418df5ec1825f766
parent240f4c15d5a62fe3868d55390f43a026723a0daa
Support mustache partials in server-side templates

This is sufficient to make https://gerrit.wikimedia.org/r/#/c/223165/
work.  It hardcodes .mustache as the extension, but so does
existing getTemplateFilename().

Bug: T97188
Change-Id: Id588ae9b43b13fcf35ebd285c826dd502ac424ec
includes/TemplateParser.php
tests/phpunit/data/templates/bad_partial.mustache [new file with mode: 0644]
tests/phpunit/data/templates/has_partial.mustache [new file with mode: 0644]
tests/phpunit/includes/TemplateParserTest.php