duncanbeevers / rails_view_annotator

Wraps the rendering of Rails partials with html comments indicating the disk location of the rendered partial
32 stars 9 forks source link

Do not annotate plaintext renders #10

Closed julik closed 10 years ago

julik commented 10 years ago

In most contexts we do not know how the plaintext being rendered will be displayed, it can actually ruin the presentation.

It is therefore safer to omit the annotations if we know that the render is plaintext by design (like in plain e-mails)

To make it work we also need a different way of extracting the format from the render arguments.

duncanbeevers commented 10 years ago

Merged and published as v0.0.10

duncanbeevers commented 10 years ago

Thanks @julik!

julik commented 10 years ago

cheers mate!