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 in template isn't passed #23

Open
francescoagati opened this issue Jul 27, 2016 · 5 comments
Open

context in template isn't passed #23

francescoagati opened this issue Jul 27, 2016 · 5 comments
Labels

Comments

@francescoagati
Copy link

The context isn't passed when printed on template.
Here an example http://jsfiddle.net/z8pzsdyv/11/

@antonmedv antonmedv added the bug label Jul 27, 2016
@antonmedv
Copy link
Owner

Yes, this is true. In render state there is no context. Context will appear after.
I know how to fix it, need to move all static constructions with this or this.context into spots.
Here is working example: http://jsfiddle.net/z8pzsdyv/12/
But note, what there is no dynamic bindings with context in template: https://github.com/monkberry/monkberry/blob/master/monkberry.js#L75

@francescoagati
Copy link
Author

yes is nice for using some context also in printing variables

@francescoagati
Copy link
Author

but i get error also with filters at the first rendering if i call a filter

@antonmedv
Copy link
Owner

but i get error also with filters at the first rendering if i call a filter

True. You can add a variable to call.

That purpose of doing stuff like this?

@francescoagati
Copy link
Author

i wanna pass context and filters to template. but whe the template is rendered i get an error

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

2 participants