We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad9d559 commit 8f2bf4eCopy full SHA for 8f2bf4e
1 file changed
src/Template.php
@@ -22,9 +22,9 @@ class Template
22
*
23
* @param string $template The template string.
24
*/
25
- public function __construct(string $template)
+ public function __construct(string $template, bool $lstripBlocks = true, bool $trimBlocks = true)
26
{
27
- $tokens = Lexer::tokenize($template, lstripBlocks: true, trimBlocks: true);
+ $tokens = Lexer::tokenize($template, lstripBlocks: $lstripBlocks, trimBlocks: $trimBlocks);
28
$this->parsed = Parser::make($tokens)->parse();
29
}
30
0 commit comments