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

add a twig function to get the rendered version of a route path #14

Open
lsmith77 opened this issue Oct 5, 2012 · 4 comments
Open

add a twig function to get the rendered version of a route path #14

lsmith77 opened this issue Oct 5, 2012 · 4 comments
Labels

Comments

@lsmith77
Copy link
Member

lsmith77 commented Oct 5, 2012

the idea is that this function would look at the configuration of the route to determine the controller/template etc

@dbu
Copy link
Member

dbu commented Oct 8, 2012

interesting idea. this could conflict a bit with the block concept - or we could wrap the thing into a block rather than a twig function? you would not want the exact same template to happen as with a full request, you need a clean html structure.

also is this not similar to a subrequest?

@lsmith77
Copy link
Member Author

lsmith77 commented Oct 8, 2012

yes it would be a subrequest, but contrary to a normal render call, i would want to pass in a document path, rather than specifying a controller with specific parameters.

@dbu
Copy link
Member

dbu commented Oct 8, 2012

what about implementing this as a special type of block?

@lsmith77
Copy link
Member Author

lsmith77 commented Oct 8, 2012

could work ..

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

No branches or pull requests

3 participants