t1 = Template('rnote over $actor #MintCream \n <$triangle{scale=5}> \n end note') 
$triangle is treated as a variable but I want to use it as a symbol. how is it done?
t1 = Template('rnote over $actor #MintCream \n <$triangle{scale=5}> \n end note') 
$triangle is treated as a variable but I want to use it as a symbol. how is it done?
 
    
     
    
    if I understand you correctly, this should do the trick:
t1 = Template(r'note over $actor #MintCream \n <$triangle{scale=5}> \n end note') 
For details on meaning of r', check this
