Spage has uploaded a new change for review. https://gerrit.wikimedia.org/r/223218
Change subject: Support mustache partials in server-side templates ...................................................................... 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 existng getTemplateFilename(). Bug: T97188 Change-Id: Id588ae9b43b13fcf35ebd285c826dd502ac424ec --- M includes/TemplateParser.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/18/223218/1 diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index d53d593..f0a1ebb 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -173,7 +173,9 @@ array( // Do not add more flags here without discussion. // If you do add more flags, be sure to update unit tests as well. - 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION + 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION, + 'basedir' => $this->templateDir, + 'fileext' => '.mustache', ) ); } -- To view, visit https://gerrit.wikimedia.org/r/223218 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id588ae9b43b13fcf35ebd285c826dd502ac424ec Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Spage <sp...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits