diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd99672 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# DigiComp.FluidCurrentControllerExpression + +This extends the fluid language with an expression to allow you to access values of the current action request. + +```html + + Welcome to {#currentController.name} {#currentController.actionName} + +``` + +The pattern is `{#currentController.PROPERTY_OF_ACTIONREQUEST}` - all properties are possible. To avoid duplicated "controller" in the expression you are allowed to omit them (even if it works, if you do not). + +It is really helpful if you try to generalize partials - being an expression, it is not depending on any aliased namespace, which might change in deeper structures. diff --git a/composer.json b/composer.json index 10cda9a..5c6a1b5 100644 --- a/composer.json +++ b/composer.json @@ -16,5 +16,20 @@ "psr-4": { "DigiComp\\FluidCurrentControllerExpression\\": "Classes/" } - } + }, + "authors": [ + { + "name": "Ferdinand Kuhl", + "email": "f.kuhl@digital-competence.de", + "homepage": "https://www.digital-competence.de", + "role": "Developer" + } + ], + "license": "MIT", + "homepage": "https://git.digital-competence.de/Packages/DigiComp.FluidCurrentControllerExpression", + "keywords": [ + "Neos", + "Flow", + "fluid" + ] }