terps/tads/tads3/test/data/embed_in_tpl.t
raw| 1 | /* |
| 2 | * Embedded expression in a single-quoted string in a template |
| 3 | */ |
| 4 | |
| 5 | class Thing: object |
| 6 | name = '' |
| 7 | desc = "" |
| 8 | ; |
| 9 | |
| 10 | Thing template 'name' "desc"?; |
| 11 | |
| 12 | knife: Thing '<<color>> knife' "It's a knife with a <<color>> blade. " |
| 13 | color = '<<one of>>red<<or>>green<<or>>blue<<cycling>>' |
| 14 | ; |
| 15 | |
| 16 | main(args) |
| 17 | { |
| 18 | for (local i in 1..6) |
| 19 | "<<knife.name>>\n"; |
| 20 | } |