You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently in Rails 6.1 was introduced option to annotate rendering of templates with some debug comments.
Internally such behavior is handled by actionview/lib/action_view/template/handlers/erb/erubi.rb :
ifActionView::Base.annotate_template_file_namesproperties[:preamble]="@output_buffer.safe_append='<!-- BEGIN #{properties[:short_identifier]} -->\n';"properties[:postamble]="@output_buffer.safe_append='<!-- END #{properties[:short_identifier]} -->\n';@output_buffer.to_s"elseproperties[:preamble]=""properties[:postamble]="@output_buffer.to_s"end
rails/rails#38848
That's very useful developer-time-saving feature, especially on projects with complex layouts.
Is there any way to enable behavior like this in hamlit?
(register callback, additional prefix handler, etc)
The text was updated successfully, but these errors were encountered:
Recently in Rails 6.1 was introduced option to annotate rendering of templates with some debug comments.
Internally such behavior is handled by
actionview/lib/action_view/template/handlers/erb/erubi.rb
:rails/rails#38848
That's very useful developer-time-saving feature, especially on projects with complex layouts.
Is there any way to enable behavior like this in
hamlit
?(register callback, additional prefix handler, etc)
The text was updated successfully, but these errors were encountered: