durusmail: quixote-users: Thoughts on a block-syntax extension to PTL
Thoughts on a block-syntax extension to PTL
2005-08-22
2005-08-22
2005-08-22
2005-08-22
2005-08-22
2005-08-23
2005-09-07
Thoughts on a block-syntax extension to PTL
Ksenia Marasanova
2005-09-07
2005/9/7, Graham Fawcett :
> 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
reply