Skip to content

Commit

Permalink
replace generatedBy context value by template
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Jan 19, 2023
1 parent fe34ce9 commit 7b79de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void generate( Model model, Properties parameters ) throws ModelloExcepti
for ( String templatePath : templates.split( "," ) )
{
Template template = velocity.getTemplate( templatePath );
context.put( "generatedBy", "Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten." );
context.put( "template", templatePath );

try ( Writer w = new RedirectingWriter( Paths.get( output ) ) )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<tr><td><code>Helper</code></td><td><a href="apidocs/org/codehaus/modello/plugin/velocity/Helper.html"><code>Helper</code></a></td>
<td>A helper tool with classical functions useful to generate content from a Modello model API.</td>
</tr>
<tr><td><code>generatedBy</code></td><td><code>String</code></td>
<td>"Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten."</td>
<tr><td><code>template</code></td><td><code>String</code></td>
<td>the template that is being evaluated.</td>
</tr>
</table>
</p>
Expand Down

0 comments on commit 7b79de4

Please sign in to comment.