Pug template if conditions2/25/2023 ![]() ![]() That's why there are breaking changes in this new version. Pug-php 3 is now aligned on pugjs 2, it aims to be a perfect ]) Supports for local variables $pug = new Pug() You can also use the facade to call methods statically: true, Main methods are render, renderFile, compile, compileFile,ĭisplay, displayFile and setOption, see the complete documentation Since pug-php 3.1.2, you no longer need to import the class with Zend Expressive: Use displayFile('my-pug-template.pug') ![]() Then run: composer require pug-php/pug Pug in your favorite framework Official Phug documentation See Pug-php demo Get supported pug-php/pug with the Tidelift Subscription Installįirst you need composer if you haven't yet: Since version 3, it uses Phug, a very customizable Pug template engine made by the tale-pug and pug-php developers as the new PHP Pug engine reference. Pug-php adds inline PHP scripting support to the Pug template compiler. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |