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

Check dump in Latte templates #14

Open
grogy opened this issue Dec 2, 2014 · 2 comments
Open

Check dump in Latte templates #14

grogy opened this issue Dec 2, 2014 · 2 comments

Comments

@grogy
Copy link
Contributor

grogy commented Dec 2, 2014

Idea: check forgotten dumps from Latte templates. Example of use is in documentation http://doc.nette.org/en/2.2/default-macros#toc-variable-dumping.

How it implement? That will not do with PHP tokens. Use regular expressions?

@JakubOnderka
Copy link
Owner

I think the best solution is add optional dependency to 'nette/latte' package and use Nette\Latte::parse method (https://github.com/nette/latte/blob/master/src/Latte/Parser.php#L78), which returns array of tokens.

@grogy
Copy link
Contributor Author

grogy commented Dec 2, 2014

I don't know it. Thank you!

I want implement it this week. Soon I will send pull request.

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

No branches or pull requests

2 participants