prgfx/fusion-template-literals

Last activity 05 Jan 2020 8
composer require prgfx/fusion-template-literals

A fusion DSL providing a syntax similar to the javascript tagged template literals

0.3.0

Version
0.3.0
Type
neos-package
Release Date
Jan 05, 2020 10:05
Source
git
Distribution
zip
Requires
  • neos/fusion: *
GPL-3.0-or-later 1283a9702331bbcbf025197161fe11c7d7bbd5b4

Readme excerpt

Prgfx.Fusion.TemplateLiterals

A Neos Fusion DSL implementation based on tagged template literals in javascript.

composer require prgfx/fusion-template-literals Usage

By 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 content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 9 package(s).