-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[feature] List all filenames used in render() #300
Comments
I can accept PRs that achieve this as long as they include tests. |
This feature is very similar to what I'm looking for. My use case is the following: I have a website with hundreds of pages. I build the website with @zzzeek, how big of an effort do you think it would be to create this type of PR (including tests)? |
both of these things can be done in the interim as separate utilities. use the Lexer to get a template structure, then traverse it to locate filenames and whatever. it would be cleaner just as a separate utility function given a Template or a filename. |
I've got a fairly complex template layout. It would be helpful for debugging to have a way I could see which filenames are part of a template.
Example:
example.tmpl includes two template files : included_filename1.tmpl included_filename2.tmpl
If the
template
object supported something likesource_files
that provided['example.tmpl', 'included_filename1.tmpl', 'included_filename2.tmpl']
that would dramatically simplify my debugging down the line.The text was updated successfully, but these errors were encountered: