Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created April 12, 2011 20:46
Show Gist options
  • Select an option

  • Save iammerrick/916368 to your computer and use it in GitHub Desktop.

Select an option

Save iammerrick/916368 to your computer and use it in GitHub Desktop.
<?php
class WordStache extends Mustache{
public function render($template = null, $view = null, $partials = null) {
if (preg_match("/^!path/", $template))
{
$template = file_get_contents(TEMPLATE_PATH.substr($template, 5));
}
return parent::render($template, $view, $partials);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment