Something else could be missing: metadata attached to the rendered result,
like caching tags, contexts, which need to be gathered when assembling
render results to build an actual HTTP response (coming from a Drupal
"render array" background, as some can guess).

2017-09-25 8:21 GMT+02:00 Xedin Unknown <[email protected]>:

> I believe that's a great argument for not including the template *source*
> in the description. A template instance can encapsulate `vsprintf()`, for
> example, and there's never going to be a file or a path resolution. This is
> all implementation detail that can be handled via IoC.
>
> $template = new PrintfTemplate('Hello, %1$s!');
> $context = new DataObject(['Xedin']);
> $greeting = $template->render($context); // Hello, Xedin!
>
>
>
> On Monday, September 25, 2017 at 8:15:27 AM UTC+2, Nicolas Grekas wrote:
>>
>> > Granted, the majority of template engines use a template file-name and
>> a set of name/value pairs
>>
>> Twig also doesn't reference templates by file name.
>> It references them by logical name instead, and uses loaders to resolve
>> that to whatever storage you'd like to use for the template strings.
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "PHP Framework Interoperability Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/php-fig/c9192cc6-281e-44e7-98cc-ba2b5c1683c7%40googlegroups.com
> <https://groups.google.com/d/msgid/php-fig/c9192cc6-281e-44e7-98cc-ba2b5c1683c7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CANqRZ1NhEJSv2%2BZDrBtoKv-HeMW-zagic34xUM7ANe%2Bmwiz0tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to