« Return to Thread: RHTML comments

Re: RHTML comments

by MarkV :: Rate this Message:

Reply to Author | View in Thread

<snip>

>     <p>
>     Hello World
>     </p>
>
> I also use RHTML-style comments such that the lines will be removed
> from output:
>
>     <%#*<p>%>
>     <%#*Hello World%>
>     <%#*</p>%>
>
> Toggling again will bring back what you originally had - <p>Hello
> World</p>.
>
> The reason I stick an extra "*" in there is such that I can correctly
> uncomment/comment the code. Otherwise, how can I uncomment the below?
>

would ## not suffice?
just my 2c
Thanks for all the effort
Mark

>       <%# foo %>
>
> Is it Ruby code, which should uncomment to
>       <% foo %>
> or is it text, which should uncomment to
>      foo
> ?
> The * is what gives it away.
>
> Hopefully this works well enough for 6.0. File any bugs or
> suggestions for improvements with the issue tracker.
>
> -- Tor
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: RHTML comments