| 1 | <h2>Comments</h2> |
| 2 | <pre><code># This is a comment</code></pre> |
| 3 | |
| 4 | <h2>Strings</h2> |
| 5 | <pre><code>"foo \"bar\" baz" |
| 6 | "foo\ |
| 7 | bar\ |
| 8 | baz"</code></pre> |
| 9 | |
| 10 | <h2>Variables</h2> |
| 11 | <pre><code>$foo |
| 12 | $foo::bar_42 |
| 13 | $::baz |
| 14 | ${foobar} |
| 15 | set foo::bar "baz"</code></pre> |
| 16 | |
| 17 | <h2>Functions</h2> |
| 18 | <pre><code>proc foobar {baz} { |
| 19 | puts $baz |
| 20 | } |
| 21 | |
| 22 | proc RESTORE/post/:post_id/comment/:comment_id {post_id comment_id} { |
| 23 | #| Restore a comment handler |
| 24 | comment_restore $comment_id |
| 25 | qc::actions redirect [url "/post/$post_id" show_deleted_comment_ids $comment_id] |
| 26 | }</code></pre> |