Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context API #2

Open
4 tasks
schlessera opened this issue May 29, 2016 · 3 comments
Open
4 tasks

Context API #2

schlessera opened this issue May 29, 2016 · 3 comments
Assignees

Comments

@schlessera
Copy link
Member

Design & develop a Context API (separate package?).

Requirements:

  • Context data needs to be able to be lazily evaluated.
  • Caching needs to be possible.
  • Global & view-specific contexts need to be accepted & merged on render.
  • Needs to be flexible enough to be reused with different implementations (Twig, Blade, Foil, ...).
@schlessera schlessera self-assigned this May 29, 2016
@lkraav
Copy link

lkraav commented Dec 24, 2018

Hi @schlessera. Is there any further work planned on this package or is https://github.com/thephpleague/plates perhaps a stronger ootb choice?

There's a relatively low count of pure PHP view implementations available to choose from, so curious.

@schlessera
Copy link
Member Author

@lkraav Sorry for only noticing your comment just now.

I'm using this view component on multiple production sites and keep it up-to-date whenever I hit issues.

It is not a fully-fledged engine, but rather an abstraction mechanism that lets you add more elaborate engines after the fact. And saying this, I now remember that I haven't yet published the Mustache extension that demonstrates how easy it is to extend this. The main benefit of this package is that the different actual engines, like Mustache, Plates, ... can all be used at the same time and mixed as convenient.

@lkraav
Copy link

lkraav commented Jul 16, 2019

Tyvm. Are there any example projects out in the wild using this package? I see README with some examples, but an actual project usage demonstration sure would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants