You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kevin Menard (JIRA)" <de...@tapestry.apache.org> on 2008/01/04 19:21:34 UTC

[jira] Created: (TAPESTRY-2016) Make it simple to add new parser patterns

Make it simple to add new parser patterns
-----------------------------------------

                 Key: TAPESTRY-2016
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2016
             Project: Tapestry
          Issue Type: Wish
    Affects Versions: 5.0.8
            Reporter: Kevin Menard


I realize that this is a wish item, but I think it could add a lot of power to Tapestry.  Right now, expansions are awesome to use, but at the same time they're still quite limited.  Being able to contribute new expansion patterns could lead to some really interesting results.

At the simplest level, I could just use something other than ${blah}.  For example, my first T5 app was basically a port from a Django app.  Django uses {{blah}} for its form of expansions.  If I could have contributed that as a pattern the migration would have gone a lot easier.

Things could get increasingly more sophisticated, however.  Looking at Django again, they have something called "filters" that seem quite similar to T5's mixins.  What's interesting is that filters can be chained together in an expansion.  As an example:

{{ object.date|date:"F j, Y" }}

That takes a date from some object and pipes it through the date filter, which is configured with the text following the colon.

You could string these arbitrarily long.  Maybe you have one filter to make clickable URLs out of any URLs in a given text section and then pipe it into another that truncates the total amount of text.

I could see value in adding yet another expansion for outputting raw values rather than using a component in the template to do so.


Anyway, lots of things I'd like to see enhanced with the template processor in general.  I think the path of least resistance would be to make it possible for someone to easily make a contribution and if something becomes popular enough, look at adding it to Tapestry proper.

-- 
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAP5-123) Make it simple to add new parser patterns

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-123:
--------------------------------------

    Issue Type: New Feature  (was: Bug)

> Make it simple to add new parser patterns
> -----------------------------------------
>
>                 Key: TAP5-123
>                 URL: https://issues.apache.org/jira/browse/TAP5-123
>             Project: Tapestry 5
>          Issue Type: New Feature
>    Affects Versions: 5.0.15
>            Reporter: Kevin Menard
>
> I realize that this is a wish item, but I think it could add a lot of power to Tapestry.  Right now, expansions are awesome to use, but at the same time they're still quite limited.  Being able to contribute new expansion patterns could lead to some really interesting results.
> At the simplest level, I could just use something other than ${blah}.  For example, my first T5 app was basically a port from a Django app.  Django uses {{blah}} for its form of expansions.  If I could have contributed that as a pattern the migration would have gone a lot easier.
> Things could get increasingly more sophisticated, however.  Looking at Django again, they have something called "filters" that seem quite similar to T5's mixins.  What's interesting is that filters can be chained together in an expansion.  As an example:
> {{ object.date|date:"F j, Y" }}
> That takes a date from some object and pipes it through the date filter, which is configured with the text following the colon.
> You could string these arbitrarily long.  Maybe you have one filter to make clickable URLs out of any URLs in a given text section and then pipe it into another that truncates the total amount of text.
> I could see value in adding yet another expansion for outputting raw values rather than using a component in the template to do so.
> Anyway, lots of things I'd like to see enhanced with the template processor in general.  I think the path of least resistance would be to make it possible for someone to easily make a contribution and if something becomes popular enough, look at adding it to Tapestry proper.

-- 
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2016) Make it simple to add new parser patterns

Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630995#action_12630995 ] 

Kevin Menard commented on TAPESTRY-2016:
----------------------------------------

Well, a parse error should be able to be handled in reasonable way across any sort of pattern.  Or are you suggesting a deeper problem with the contributed pattern (e.g., memory leak)?

My guess is that this isn't something that would likely be done often in an application, but rather provided by library authors.  Still potentially problematic, but it would be limited in scope and could lead to some nicer syntax in the template.

> Make it simple to add new parser patterns
> -----------------------------------------
>
>                 Key: TAPESTRY-2016
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2016
>             Project: Tapestry
>          Issue Type: Wish
>    Affects Versions: 5.0.8
>            Reporter: Kevin Menard
>             Fix For: 5.1
>
>
> I realize that this is a wish item, but I think it could add a lot of power to Tapestry.  Right now, expansions are awesome to use, but at the same time they're still quite limited.  Being able to contribute new expansion patterns could lead to some really interesting results.
> At the simplest level, I could just use something other than ${blah}.  For example, my first T5 app was basically a port from a Django app.  Django uses {{blah}} for its form of expansions.  If I could have contributed that as a pattern the migration would have gone a lot easier.
> Things could get increasingly more sophisticated, however.  Looking at Django again, they have something called "filters" that seem quite similar to T5's mixins.  What's interesting is that filters can be chained together in an expansion.  As an example:
> {{ object.date|date:"F j, Y" }}
> That takes a date from some object and pipes it through the date filter, which is configured with the text following the colon.
> You could string these arbitrarily long.  Maybe you have one filter to make clickable URLs out of any URLs in a given text section and then pipe it into another that truncates the total amount of text.
> I could see value in adding yet another expansion for outputting raw values rather than using a component in the template to do so.
> Anyway, lots of things I'd like to see enhanced with the template processor in general.  I think the path of least resistance would be to make it possible for someone to easily make a contribution and if something becomes popular enough, look at adding it to Tapestry proper.

-- 
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-2016) Make it simple to add new parser patterns

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629330#action_12629330 ] 

Howard M. Lewis Ship commented on TAPESTRY-2016:
------------------------------------------------

My concern with stuff like this is that it becomes too easy to destabilize the core components and pages, which can lead to an application that not only fails, but is unable to usefully report its own errors.

> Make it simple to add new parser patterns
> -----------------------------------------
>
>                 Key: TAPESTRY-2016
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2016
>             Project: Tapestry
>          Issue Type: Wish
>    Affects Versions: 5.0.8
>            Reporter: Kevin Menard
>             Fix For: 5.1
>
>
> I realize that this is a wish item, but I think it could add a lot of power to Tapestry.  Right now, expansions are awesome to use, but at the same time they're still quite limited.  Being able to contribute new expansion patterns could lead to some really interesting results.
> At the simplest level, I could just use something other than ${blah}.  For example, my first T5 app was basically a port from a Django app.  Django uses {{blah}} for its form of expansions.  If I could have contributed that as a pattern the migration would have gone a lot easier.
> Things could get increasingly more sophisticated, however.  Looking at Django again, they have something called "filters" that seem quite similar to T5's mixins.  What's interesting is that filters can be chained together in an expansion.  As an example:
> {{ object.date|date:"F j, Y" }}
> That takes a date from some object and pipes it through the date filter, which is configured with the text following the colon.
> You could string these arbitrarily long.  Maybe you have one filter to make clickable URLs out of any URLs in a given text section and then pipe it into another that truncates the total amount of text.
> I could see value in adding yet another expansion for outputting raw values rather than using a component in the template to do so.
> Anyway, lots of things I'd like to see enhanced with the template processor in general.  I think the path of least resistance would be to make it possible for someone to easily make a contribution and if something becomes popular enough, look at adding it to Tapestry proper.

-- 
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2016) Make it simple to add new parser patterns

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2016:
-------------------------------------------

    Fix Version/s: 5.1

> Make it simple to add new parser patterns
> -----------------------------------------
>
>                 Key: TAPESTRY-2016
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2016
>             Project: Tapestry
>          Issue Type: Wish
>    Affects Versions: 5.0.8
>            Reporter: Kevin Menard
>             Fix For: 5.1
>
>
> I realize that this is a wish item, but I think it could add a lot of power to Tapestry.  Right now, expansions are awesome to use, but at the same time they're still quite limited.  Being able to contribute new expansion patterns could lead to some really interesting results.
> At the simplest level, I could just use something other than ${blah}.  For example, my first T5 app was basically a port from a Django app.  Django uses {{blah}} for its form of expansions.  If I could have contributed that as a pattern the migration would have gone a lot easier.
> Things could get increasingly more sophisticated, however.  Looking at Django again, they have something called "filters" that seem quite similar to T5's mixins.  What's interesting is that filters can be chained together in an expansion.  As an example:
> {{ object.date|date:"F j, Y" }}
> That takes a date from some object and pipes it through the date filter, which is configured with the text following the colon.
> You could string these arbitrarily long.  Maybe you have one filter to make clickable URLs out of any URLs in a given text section and then pipe it into another that truncates the total amount of text.
> I could see value in adding yet another expansion for outputting raw values rather than using a component in the template to do so.
> Anyway, lots of things I'd like to see enhanced with the template processor in general.  I think the path of least resistance would be to make it possible for someone to easily make a contribution and if something becomes popular enough, look at adding it to Tapestry proper.

-- 
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org