question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to find templates that are never executed?

See original GitHub issue

With .py files, --source will find files that were never even executed once. What’s the equivalent for template files?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
edwardotiscommented, Feb 21, 2016

+1 to fix this issue and +1 for every file in TEMPLATES[‘DIRS’] can be considered a template file. (people can use omit if they put non-templates in there.)

fyi, I still cannot get this plugin configured to pick up a single template.

3reactions
PamelaMcommented, Jan 14, 2016

I can’t speak for every project, but for ours, every file in TEMPLATE_DIRS is a template.

One could add optional settings for: (a) template_extensions (defaults to .*, but for most of us it will be .html) (b) If you open a file, parse it, and there’s no template language (e.g. ‘{%’ or ‘{{’), it’s not a template

But I think treating the TEMPLATE_DIRS as containing all templates will be good enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django templates not executed in a container and no errors ...
You have defined header and footer by never used them inside a template. Try below approach, you can extends how you want it...
Read more >
Finding Errors - Ultradox
Is Ultradox not generating your documents due to errors in your templates? This guide described techniques how to find the root cause of ......
Read more >
SQL Server Profiler Templates - Microsoft Learn
Learn about the predefined templates SQL Server Profiler provides and how to use them. See how to create user-defined templates and change ...
Read more >
Running classic templates | Cloud Dataflow
Select Custom Template from the Dataflow template drop-down menu. Custom Template Execution Form; Enter a job name in the Job Name field. Enter ......
Read more >
Angular: DON'T Call Functions Inside The Template Anymore
A possible workaround is to avoid template function calls with complicated computation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found