Re: Thoughts on a block-syntax extension to PTL
Ksenia Marasanova <[email protected]>
| Newsgroups | gmane.comp.web.quixote.user |
|---|---|
| Message-ID | <[email protected]> |
2005/9/7, Graham Fawcett <[email protected]>: > Thanks. Actually, I'm going to change the above statement to, "the > expression must resolve to an object that has methods 'open_block' and > 'close_block'". In other words, the designer of the tag-class can > decide what to return (though it would probably be a htmltext object). Sounds great! This syntax feels so natural, the more I look at it the more I like it. And Python auto-indent works automatically after :, at least in Vim (anytag: -> hit return -> auto-indented 4 characters) Cool ;-) It also eliminates another ptl-related Vim problem -- files with long multiline strings become very slow (I am not an expert on Vim so maybe it's easy fixable though). -- Ksenia