Show filenames in templates for debugging

SilverStripe's template engine hides by default names of templates. While developing and debugging template stuff you'd like to see them in your rendered page. Jonathon Menz sent me a neat config setting to enable this behaviour

To see comments in markup about template sources etc.:



  environment: 'dev'



  source_file_comments: true

This will produce output like this:

 silverstripe show comments in templates

Rate this post

Post your comment


No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments