Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you comment your RTML code?

Tags:

rtml

<rant-mode> Have you ever seen a programming language that does not allow to add comments to the code? Welcome to the world of RTML (may it burn in hell)! </rant-mode>

Question

What is the best technique (if any) you've adopted to comment your RTML code?

Thank you!

like image 703
Yarik Avatar asked Nov 18 '25 21:11

Yarik


1 Answers

To create a comment in RTML, click on your template, then New, and in the textbox that says Simple, type (in quotes) your comment.

"**************** My comment and stuff ******************"

If you want to comment out a piece of code, insert your code after a MULTI which groups multiple RTML statements and then a WHEN nil. Everything after the WHEN nil will never be executed.

WHEN nil
    MULTI
        TEXT @a-random-variable
like image 186
bmarti44 Avatar answered Nov 21 '25 02:11

bmarti44



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!