[ 
http://issues.apache.org/jira/browse/VELOCITY-441?page=comments#action_12413711 
] 

Colbert Philippe commented on VELOCITY-441:
-------------------------------------------

Good suggestion!  I have question though.  Why does Transformer have to be 
specific to XML?  Why can't it be for general use?

Text file preprocessing is nothing new.  It's as old as Assembly Language.  
Under unix there was a number of source file macro preprocessors.   One of them 
was called M4.   M4 was for general use, felixbile and expressive.   The 
usefulness of macro preprocessors got lost in the programming tradition.   It's 
time to revive it given that Velocity already exists.

I am suggesting to do the same thing with Velocity.   There should be no 
assumption as to the nature of the source file.

I like the fact that your Transformer.java handles a variety of text encoding.  
 I have never messed around with that.

> Provide class to be called from command-line to translate any file with 
> special suffix.
> ---------------------------------------------------------------------------------------
>
>          Key: VELOCITY-441
>          URL: http://issues.apache.org/jira/browse/VELOCITY-441
>      Project: Velocity
>         Type: Improvement

>   Components: Build
>     Versions: 1.4
>  Environment: WindowsXP
>     Reporter: Colbert Philippe
>  Attachments: Transformer.java
>
> This is a simple but important feature to have.   To standadize the use of 
> Velocity, provide a class that can be called from the command-line that will 
> do the translation from *.vm ---> final-file.   The class will look for any 
> file that has one of the special suffixes (specified by as parameters) and 
> will translate it.
> The name convention for the translation would like this that:
> someFileName.velocity ---> someFileName
> someFileName.vm ---> someFileName
> Example:
> myFile.html.velocity ---> myFile.html
> The user would specify the list of suffixes as parameter in Java (like 
> String[] suffixes = { ".velocity", ".vm" }.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to