You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Byron Foster (JIRA)" <de...@velocity.apache.org> on 2009/02/16 23:12:59 UTC

[jira] Created: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

If #stop is specified as #stop(template) then parsing only stops current template rendering
-------------------------------------------------------------------------------------------

                 Key: VELOCITY-698
                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
             Project: Velocity
          Issue Type: New Feature
          Components: Engine
    Affects Versions: 2.0
            Reporter: Byron Foster


#stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Resolved: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-698.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0
                   1.7

The #stop(parse) is now gone from 2.0, but you can now do #break($template) in both 1.7 and 2.0 thanks to VELOCITY-704.  So i think that closes out this issue, right?

> If #stop is specified as #stop(template) then parsing only stops current template rendering
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-698
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>             Fix For: 1.7, 2.0
>
>
> #stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

Posted by "Byron Foster (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681456#action_12681456 ] 

Byron Foster commented on VELOCITY-698:
---------------------------------------

yea, no need for this anymore.

> If #stop is specified as #stop(template) then parsing only stops current template rendering
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-698
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>             Fix For: 1.7, 2.0
>
>
> #stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

Posted by "Byron Foster (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674412#action_12674412 ] 

Byron Foster commented on VELOCITY-698:
---------------------------------------

I actually implemented this as #stop(parse) which I think is more obvious to the user.  Also, I converted the #stop command to a directive instead of an AST node following the approach that if it doesn't have to be in the parser it shouldn't be.

> If #stop is specified as #stop(template) then parsing only stops current template rendering
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-698
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>
> #stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

Posted by "Byron Foster (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674605#action_12674605 ] 

Byron Foster commented on VELOCITY-698:
---------------------------------------

'parse' is simply a keyword, a simple flag to instruct the #stop directive to end rendering up to the last #parse call, then continue rendering.  Without this keyword template rendering ends regardless of the current #parse level.

> If #stop is specified as #stop(template) then parsing only stops current template rendering
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-698
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>
> #stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-698) If #stop is specified as #stop(template) then parsing only stops current template rendering

Posted by "Claude Brisson (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674485#action_12674485 ] 

Claude Brisson commented on VELOCITY-698:
-----------------------------------------

Could you just elaborate a bit on this new syntax? Do you mean: #stop('/mypath/mytemplate.vtl') ?
If so, how does a vtl library writer know how his template will be called?
Or literally "#stop(parse)" ? What is the behaviour on chained parses?

> If #stop is specified as #stop(template) then parsing only stops current template rendering
> -------------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-698
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-698
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 2.0
>            Reporter: Byron Foster
>
> #stop(template)  will only stop the current template, so if the template is called with a #parse command, then rendering will end within the given #parse, and resume within the calling template.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org