documentation update php symfony (#1978)

* docs: php (symfony sdk)

* docs: twig support for fragments

---------

Co-authored-by: Cristian Toma <cristian.toma@vivre.eu>
This commit is contained in:
Cristi 2023-11-09 23:20:47 +02:00 committed by GitHub
parent 4f75a38123
commit 798a32b1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,7 @@ Here are some known implementations of the fragment concept:
* PHP
* [Latte](https://latte.nette.org/en/template-inheritance#toc-blocks) - Use the 3rd parameter to only render 1 block from the template - `$Latte_Engine->render('path/to/template.latte', [ 'foo' => 'bar' ], 'content');`
* [Laravel Blade](https://laravel.com/docs/10.x/blade#rendering-blade-fragments) - includes built-in support for template fragments as of v9.x
* [Twig](https://twig.symfony.com/doc/3.x/api.html#rendering-templates) - `$template->renderBlock('block_name', ['the' => 'variables', 'go' => 'here']);`
* Python
* [Django Render Block Extension](https://pypi.org/project/django-render-block/) - see [example code for htmx](https://github.com/spookylukey/django-htmx-patterns/blob/master/inline_partials.rst)
* [jinja2-fragments package](https://github.com/sponsfreixes/jinja2-fragments)

View File

@ -138,6 +138,10 @@ These examples may make it a bit easier to get started using htmx with your plat
- <https://github.com/michalsn/codeigniter-htmx-demo>
### Symfony
- <https://github.com/tomcri/htmxfony>
## Elixir
### Phoenix