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

Support different filename extensions besides ".blade.php" #33

Open
funkytaco opened this issue Jun 12, 2019 · 1 comment
Open

Support different filename extensions besides ".blade.php" #33

funkytaco opened this issue Jun 12, 2019 · 1 comment

Comments

@funkytaco
Copy link

@bobthecow/mustache supports the following:

$mustache_options = array('extension' => '.html');

I'd like to use .html, .php, .whatever for my filename extensions for this project. Thanks again.

@Tickthokk
Copy link

I had a similar requirement, and this is how I added extensions. Laughably I have the second line in a loop because I actually have 7 additional extensions I needed to enable.

$blade = new Blade(exec('pwd'), '/tmp');
$blade->addExtension('html.php', 'blade');
$html = $blade->make(...stuff...);

Hope this helps!

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