zhang-haibo / velocity-edit

Automatically exported from code.google.com/p/velocity-edit
GNU General Public License v2.0
0 stars 0 forks source link

Please support custom directives #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create custom block directive (extend 
org.apache.velocity.runtime.directive.Block)

2. Use it in .vm template:
#myDirective()
my directive internal content
#end

3. Velocity-edit reports misplaced #end error.

Original issue reported on code.google.com by egor...@gmail.com on 12 Aug 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Custom directory? I never used :)
Well, the simplest way is to add a switch to disable validation temporarily. 
How do you think about that?

Original comment by sefler...@gmail.com on 13 Aug 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Yes... please allow custom directive or a way to disabled validation.

Original comment by tim.coll...@digitalassent.com on 21 May 2013 at 2:34