blong42 / clearsilver

Official repository for the ClearSilver templating language and webkit
http://www.clearsilver.net/
Other
57 stars 25 forks source link

Ability to use different delimiters #7

Closed GoogleCodeExporter closed 7 years ago

GoogleCodeExporter commented 8 years ago
I would dearly love the ability to use delimiters other than <?cs ?>
I would like to use either <? ?> or (like eRuby) <% %>
The reason being that this means I can use editors that grok these types of 
delimiter as nothing groks <?cs
Am I right in saying that I only need to hack find_open_delim() in cs_parse and 
nowhere else?
I use Clearsilver with the Ruby API on Gentoo. I've hacked the Ruby API 
somewhat :)
I should have a fairly up-to-date version of my marauding on github soon.

Original issue reported on code.google.com by anthony....@gmail.com on 12 Jun 2012 at 8:58

blong42 commented 7 years ago

You can use something other than cs by setting Config.TagStart, but it currently doesn't support having nothing. I don't think that level of change is a good idea, is your editor configurable?

If you have code, I can take a look and reconsider.