DigiComp.FluidCurrentContro.../README.md
Ferdinand Kuhl e303f86640
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/pr/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
ci/woodpecker/pr/functional-tests/1 Pipeline was successful
ci/woodpecker/pr/functional-tests/2 Pipeline was successful
ci/woodpecker/pr/functional-tests/3 Pipeline was successful
ci/woodpecker/pr/functional-tests/4 Pipeline was successful
adding minimal documentation and package meta information
2024-05-30 15:27:19 +02:00

13 lines
650 B
Markdown

# DigiComp.FluidCurrentControllerExpression
This extends the fluid language with an expression to allow you to access values of the current action request.
```html
<html>
<title>Welcome to {#currentController.name} {#currentController.actionName}</title>
</html>
```
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.