templates: Replace templates.render with require calls.

This removes an unnecessary layer of indirection and allows webpack to
catch filename mistakes.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-07-09 12:24:00 -07:00
committed by Tim Abbott
parent 706f13b671
commit db0b33842c
56 changed files with 340 additions and 207 deletions

View File

@@ -1,3 +1,5 @@
var render_confirm_dialog = require("../templates/confirm_dialog.hbs");
var confirm_dialog = (function () {
var exports = {};
@@ -28,7 +30,7 @@ var exports = {};
*/
exports.launch = function (conf) {
var html = templates.render("confirm_dialog");
var html = render_confirm_dialog();
var confirm_dialog = $(html);
var conf_fields = [