Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mustache library call replacements #988

Open
paperscissors opened this issue Jan 16, 2017 · 1 comment
Open

Mustache library call replacements #988

paperscissors opened this issue Jan 16, 2017 · 1 comment

Comments

@paperscissors
Copy link
Contributor

Legacy mustache library replaced with composer autoloader version. Several calls on the site still use the old version and need to be changed over.

@paperscissors
Copy link
Contributor Author

New mustache calls look like:

get template: $template = CASHSystem::setMustacheTemplate("system_email")
render template:

$encoded_html = CASHSystem::renderMustache(
     $template, array(
          // array of values to be passed to the mustache template
          ...
          )
);

old ones sometimes look something like

		if (file_exists(CASH_PLATFORM_ROOT . '/lib/mustache/Mustache.php')) {
			include_once(CASH_PLATFORM_ROOT . '/lib/mustache/Mustache.php');
			$this->mustache = new Mustache;
		}

and then call the mustacher later. or not. telltale sign is the /lib/mustache/Mustache.php business.

@waferbaby waferbaby removed their assignment Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants