Hey Geir,
"Geir Magnusson Jr." wrote:
> Can that be exported? In other words, could you provide something
> that will add the capability to DW? We can include it with
> velocity.... That would be great.
Yes, it is just a XML file that goes in one of Dreamweaver's setup
directories.
For me:
C:\Program
Files\Macromedia\Dreamweaver3\Configuration\ThirdPartyTags\VM.xml
You also have to tell DW not to "rewrite HTML" in any file with .vm
extensions.
I found these ideas following similar discussions on the WebMacro list,
about how to
do the same thing with WM.
I could help with this file, but I've got a bit of testing to do.
Are there any cases in velocity where code would end in anything other
than
the #directives listed below ?
ie with a ) or a }
like:
#velocity_statement (bla.bla)
What about one line velocity statements ?
Which of the directives below are directive terminators ? #end ... ?
> And the entire velocity syntax is :
>
> #if
> #else
> #elseif
> #end
> #set
> #parse
> #include
> #macro
> #foreach
> #literal
> #stop
> ##
>
> I think :)
>
>
> -----Original Message-----
> From: Randall G. Alley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 26, 2001 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Is it difficult to change the VTL Syntax ?
>
> Thomas,
>
> I am experimenting with Dreamweaver and Velocity right now, and
> Dreamweaver
> can be customized to work better with Velocity.
>
> Look the ThirdPartyTags capability in DW, where you can define tags
> like
> #if
> #end
> , and DW will ignore them.
>
> I haven't defined each "tag" in the entire Velocity syntax yet though,
>
> so I can't guarantee it works for all cases.
>
> Thomas Fahrmeyer wrote:
>
> > Hi,
> >
> > i would like to have a VTL syntax that is similiar to Freemarker or
> simply
> > said: more tag like. In this way a Designer like dreamweaver can
> hide the
> > tags <if>,<list> it doesn't know. In my opionion it is very
> important that
> > designer can take a look at the real page design not jumbled with
> code.
> >
> > The parser used to parse a template is generated with the help of a
> > BNF-grammar. It is very difficult to change the grammar and produce
> a new
> > Parser ???
> >
> > Thanx
> > Thomas