pug-php / pug

Pug template engine for PHP
https://www.phug-lang.com
MIT License
387 stars 42 forks source link

renderfile #163

Closed anglerprasanna closed 6 years ago

anglerprasanna commented 6 years ago

I encountered an issue with the following code:

$pug->renderFile(__DIR__ . '/' . $path . '.pug', $vars);
Call to undefined method Pug\Pug::renderFile()
kylekatarnls commented 6 years ago

Hi, renderFile is a method of version 3.0.0 wich is an alpha release (https://github.com/pug-php/pug/releases) I think you have the default minimum stability (stable) so you have 2.7.1, 3.0.0 will be soon stable so I encourage you right now to install pug this way:

composer require pug-php/pug "^3.0.0@alpha"

anglerprasanna commented 6 years ago

@kylekatarnls thanks a lot!