With both T4 and T5 this is possible; I think it is easier in T5 because of how the parser works (it provides a set of tokens). From there, there's more work ... to ensure that the tokens parsed are correct (i.e. that component types are valid, parameters are bound properly, etc.).
T5 has the PageTester, which allows you to run the app without a servlet container; an API is provided that allows you to trigger events and obtain the result (as a kind of DOM tree). Validating the templates is a small portion of this. On 7/12/07, mraible <[EMAIL PROTECTED]> wrote:
Is it possible to use Tapestry's parser in tests to verify that template syntax is correct? I'd like to run tests (like you do when doing a JSP pre-compile) to verify syntax w/o having to start the app and find out at runtime. Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-test-Tapestry-templates-out-of-container--tf4071711.html#a11571515 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]