Skip to content

Commit

Permalink
Revert "Add the dynamicpartial helper"
Browse files Browse the repository at this point in the history
This reverts commit d7fdf3e.
  • Loading branch information
uhunkler committed Apr 2, 2015
1 parent 07b4f4f commit fa7179e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
49 changes: 0 additions & 49 deletions lib/classes/output/mustache_dynamicpartial_helper.php

This file was deleted.

4 changes: 1 addition & 3 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,14 @@ protected function get_mustache() {
$stringhelper = new \core\output\mustache_string_helper();
$jshelper = new \core\output\mustache_javascript_helper($this->page->requires);
$pixhelper = new \core\output\mustache_pix_helper($this);
$dynamicpartial = new \core\output\mustache_dynamicpartial_helper();

// We only expose the variables that are exposed to JS templates.
$safeconfig = $this->page->requires->get_config_for_javascript($this->page, $this);

$helpers = array('config' => $safeconfig,
'str' => array($stringhelper, 'str'),
'js' => array($jshelper, 'help'),
'pix' => array($pixhelper, 'pix'),
'dyn' => array($dynamicpartial, 'dyn'));
'pix' => array($pixhelper, 'pix'));

$this->mustache = new Mustache_Engine(array(
'cache' => $cachedir,
Expand Down

0 comments on commit fa7179e

Please sign in to comment.