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

Help developers by indicating undefined data in debug mode #365

Open
vparpoil opened this issue Apr 7, 2022 · 0 comments
Open

Help developers by indicating undefined data in debug mode #365

vparpoil opened this issue Apr 7, 2022 · 0 comments
Milestone

Comments

@vparpoil
Copy link

vparpoil commented Apr 7, 2022

It would be great to implement a debug mode that could be enabled by default in development mode (via process.env or Meteor.isDevelopment ?) that adds logging messages when a variable is not defined in a template.

As an example the following code

<template name="MyTemplate">
   <div>
    {{title}}
  </div>
</template>

could raise console info messages on render when title is not defined in Template.instance().data or not defined in template helpers or when the helper return an undefined value

I think this feature could be helpful for developers, specially when refactoring code

Do you think it would be doable without too much effect on performance ? Maybe this could be done with custom code outside of blaze core ?

@StorytellerCZ StorytellerCZ added this to the Blaze 3.0 milestone Apr 8, 2022
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