So monolithic mashed together architecture is a good thing and small decoupled libraries are a bad thing? Sure, if you add too many abstractions you will see a performance loss. But a template engine is either performant, or it is not. The fact that it's part of phpBB does not change a thing. We could switch to twig for templating and would most likely see no performance loss, or maybe even performance improvements.AmigoJack wrote:I'm no friend of relying on (heavy) external frameworks - flexibility always comes with performance loss and once phpBB chooses that direction it will be difficult or impossible to tune it for phpBB's needs.
Variety shouldn't be underestimated. Once using Twig, phpBB will profit be unburdened, but also rely and suffer. A vulnerability to Twig will then reach far more users, not to mention how phpBB will handle version updates because of that. Potential MODs will then have to touch Twig where phpBB's hook architecture won't kick in. I'm the pessimist and always see the disadvantages.igorw wrote:small decoupledAmigoJack wrote:relying on (heavy)
Code: Select all
Notice: Undefined index: template_path in C:\Server\test\classes\template.php on line 767 Notice: Undefined property: stdClass::$lang in C:\Server\test\classes\template.php on line 776 Fatal error: template->_tpl_load_file() in C:\Server\test\classes\template.php on line 776
Code: Select all
$language = array_merge($language, array( 'HOME_ADDRESS' => 'MY STREET ADDY', ));
Well, I really like the syntax in its templates and it's simple. I mainly want it for multilingual websites where I have to use mixed php and html all the time.EXreaction wrote:Why do you want to use phpBB's template engine stand-alone?
There are far better template engines, like Twig, if you're using something independent of phpBB (we actually use Twig in phpBB 3.1).
Yup.Kamahl19 wrote:Actually I understand him. phpBB's template engine has its weaknesses and limitations, but I really like it. It is very simple and intuitive, at least for me. I also use Twig and sometimes Mustache for most of my non phpbb projects, but for small simple applications, I would like to use phpbb template engine.
You haven't tried this, which directly comes with examples and is very lightweight.AmigoJack wrote:If someone is looking for alternatives: DirecTemplate worked like a charm for me on rather small (board-less) sites.
Actually, I saw that (and all posts in this thread) but DirecTemplate seems kinda outdated:AmigoJack wrote:You haven't tried this, which directly comes with examples and is very lightweight.AmigoJack wrote:If someone is looking for alternatives: DirecTemplate worked like a charm for me on rather small (board-less) sites.
That is a protocol, so no, not "in that logic".AmigoJack wrote:In that logic HTTP 1.1 is also "outdated" because it hasn't been updated since 1999, yet you use it daily.