Hello everyone
In order to implement a new template engine in phpMyAdmin that does not allow the use of PHP directly in the templates to increase the security, I created a pull request [1] that adds an initial support to the Twig template engine.
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
[1] https://github.com/phpmyadmin/phpmyadmin/pull/13100
Best regards, Maurício Meneghini Fauth
Hi
Thanks for bringing up the discussion here.
Maurício Meneghini Fauth píše v Po 20. 03. 2017 v 17:49 -0300:
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
Maybe you could describe why did you choose Twig?
I don't have experience with any PHP templating engine, so I'll have to look at available options to see what would make most sense for us.
I chose Twig because it's a framework-independent template engine, it's easy to configure and customize, it's well documented, it has many features and it's very popular.
Another popular template engine is Blade, but if I remember correctly, it's dependent on Laravel and isn't very easy to extend.
Another option would be Smarty, but I don't know it very well.
Maurício Meneghini Fauth
On Tue, Mar 21, 2017 at 10:02 AM, Michal Čihař michal@cihar.com wrote:
Hi
Thanks for bringing up the discussion here.
Maurício Meneghini Fauth píše v Po 20. 03. 2017 v 17:49 -0300:
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
Maybe you could describe why did you choose Twig?
I don't have experience with any PHP templating engine, so I'll have to look at available options to see what would make most sense for us.
-- Michal Čihař | https://cihar.com/ | https://weblate.org/
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Hi,
i like both, Smarty and Twig, and both are available through composer, so i prefer switching to a template engine, but cannot favor one above the other.
Probably i have slightly better feeling with Twig.
Maurício Meneghini Fauth mauriciofauth@gmail.com schrieb am Di., 21. März 2017 um 15:25 Uhr:
I chose Twig because it's a framework-independent template engine, it's easy to configure and customize, it's well documented, it has many features and it's very popular.
Another popular template engine is Blade, but if I remember correctly, it's dependent on Laravel and isn't very easy to extend.
Another option would be Smarty, but I don't know it very well.
Maurício Meneghini Fauth
On Tue, Mar 21, 2017 at 10:02 AM, Michal Čihař michal@cihar.com wrote:
Hi
Thanks for bringing up the discussion here.
Maurício Meneghini Fauth píše v Po 20. 03. 2017 v 17:49 -0300:
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
Maybe you could describe why did you choose Twig?
I don't have experience with any PHP templating engine, so I'll have to look at available options to see what would make most sense for us.
-- Michal Čihař | https://cihar.com/ | https://weblate.org/
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Does anyone have experience with another template engine?
Maurício Meneghini Fauth
On Wed, Mar 22, 2017 at 8:41 AM, Sebastian Mendel info@sebastianmendel.de wrote:
Hi,
i like both, Smarty and Twig, and both are available through composer, so i prefer switching to a template engine, but cannot favor one above the other.
Probably i have slightly better feeling with Twig.
Maurício Meneghini Fauth mauriciofauth@gmail.com schrieb am Di., 21. März 2017 um 15:25 Uhr:
I chose Twig because it's a framework-independent template engine, it's easy to configure and customize, it's well documented, it has many features and it's very popular.
Another popular template engine is Blade, but if I remember correctly, it's dependent on Laravel and isn't very easy to extend.
Another option would be Smarty, but I don't know it very well.
Maurício Meneghini Fauth
On Tue, Mar 21, 2017 at 10:02 AM, Michal Čihař michal@cihar.com wrote:
Hi
Thanks for bringing up the discussion here.
Maurício Meneghini Fauth píše v Po 20. 03. 2017 v 17:49 -0300:
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
Maybe you could describe why did you choose Twig?
I don't have experience with any PHP templating engine, so I'll have to look at available options to see what would make most sense for us.
-- Michal Čihař | https://cihar.com/ | https://weblate.org/
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Hi, Sebastian Mendel, can you tell us more about Smarty and why you have slightly better feeling with Twig?
And Fon Noel, can you explain why you think Blade will be better?
On Mar 22, 2017 19:42, "Maurício Meneghini Fauth" mauriciofauth@gmail.com wrote:
Does anyone have experience with another template engine?
Maurício Meneghini Fauth
On Wed, Mar 22, 2017 at 8:41 AM, Sebastian Mendel <info@sebastianmendel.de
wrote:
Hi,
i like both, Smarty and Twig, and both are available through composer, so i prefer switching to a template engine, but cannot favor one above the other.
Probably i have slightly better feeling with Twig.
Maurício Meneghini Fauth mauriciofauth@gmail.com schrieb am Di., 21. März 2017 um 15:25 Uhr:
I chose Twig because it's a framework-independent template engine, it's easy to configure and customize, it's well documented, it has many features and it's very popular.
Another popular template engine is Blade, but if I remember correctly, it's dependent on Laravel and isn't very easy to extend.
Another option would be Smarty, but I don't know it very well.
Maurício Meneghini Fauth
On Tue, Mar 21, 2017 at 10:02 AM, Michal Čihař michal@cihar.com wrote:
Hi
Thanks for bringing up the discussion here.
Maurício Meneghini Fauth píše v Po 20. 03. 2017 v 17:49 -0300:
However, as Michal correctly pointed out, the choice of which template engine to use and whether to use one or not should be discussed earlier through this mailing list.
What are your ideas on this subject?
Maybe you could describe why did you choose Twig?
I don't have experience with any PHP templating engine, so I'll have to look at available options to see what would make most sense for us.
-- Michal Čihař | https://cihar.com/ | https://weblate.org/
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers