prgfx/fusion-template-literals
composer require prgfx/fusion-template-literals
A fusion DSL providing a syntax similar to the javascript tagged template literals
0.3.0
Readme excerpt
Prgfx.Fusion.TemplateLiteralsA Neos Fusion DSL implementation based on tagged template literals in javascript.
composer require prgfx/fusion-template-literals UsageBy default this package defines the DSL identifier plain, but you can alias it for more meaningful tags for your application.
p = Some.Example:Prototype { value = plain`Some text with ${I18n.translate('interpolated')} values` }This package comes with two implementations: an array-renderer (creating a fusion array-like object (e.g. Neos.Fusion:Array or Neos.Fusion:Join as per configuration)) and an eel-expression renderer.
The latter has the advantage that you may reference variables as ${this.…
Read more
The same vendor provides 9 package(s).