Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed_explicit.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed_explicit.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed_explicit.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed_explicit.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,29 @@ +<#-- +/* + * $Id: testput_reversed_explicit.ftl 742191 2009-02-08 22:43:19Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.insertTemplate template="/freemarker/layout_alt_title.ftl"> + <@tiles.putAttribute name="title" value="This is the title." + type="org.apache.tiles.test.renderer.ReverseStringAttributeRenderer" /> + <@tiles.putAttribute name="header" value="/freemarker/header.ftl" /> + <@tiles.putAttribute name="body" value="/freemarker/body.ftl" /> +</@tiles.insertTemplate> \ No newline at end of file
Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_servlet.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_servlet.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_servlet.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_servlet.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,28 @@ +<#-- +/* + * $Id: testput_servlet.ftl 742199 2009-02-08 23:05:44Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.insertTemplate template="/servlets/layoutServlet"> + <@tiles.putAttribute name="title" value="This is the title." /> + <@tiles.putAttribute name="header" value="/freemarker/header.ftl" /> + <@tiles.putAttribute name="body" value="/freemarker/body.ftl" /> +</@tiles.insertTemplate> \ No newline at end of file Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,31 @@ +<#-- +/* + * $Id: testputlist.ftl 742191 2009-02-08 22:43:19Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.insertTemplate template="/freemarker/putattributeslayout.ftl"> + <@tiles.putAttribute name="stringTest" value="This is a string" type="string" /> + <@tiles.putListAttribute name="list"> + <@tiles.addAttribute value="valueOne" type="string" /> + <@tiles.addAttribute value="valueTwo" type="string" /> + <@tiles.addAttribute value="valueThree" type="string" /> + </@tiles.putListAttribute> +</@tiles.insertTemplate> \ No newline at end of file Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_cascaded.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_cascaded.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_cascaded.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_cascaded.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,34 @@ +<#-- +/* + * $Id: testputlist_cascaded.ftl 743333 2009-02-11 13:22:57Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.insertTemplate template="/freemarker/layout.ftl"> + <@tiles.putAttribute name="title" value="This is the title." /> + <@tiles.putAttribute name="header" value="/freemarker/header.ftl" /> + <@tiles.putAttribute name="body" value="/freemarker/putattributeslayout.ftl" /> + <@tiles.putAttribute name="stringTest" value="This is a string" type="string" cascade=true /> + <@tiles.putListAttribute name="list" cascade=true> + <@tiles.addAttribute value="valueOne" type="string" /> + <@tiles.addAttribute value="valueTwo" type="string" /> + <@tiles.addAttribute value="valueThree" type="string" /> + </@tiles.putListAttribute> +</@tiles.insertTemplate> \ No newline at end of file Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_inherit.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_inherit.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_inherit.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_inherit.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,28 @@ +<#-- +/* + * $Id: testputlist_inherit.ftl 743333 2009-02-11 13:22:57Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.insertDefinition name="freemarker.test.putAttributes"> + <@tiles.putListAttribute name="list" inherit=true> + <@tiles.addAttribute value="valueFour" type="string" /> + </@tiles.putListAttribute> +</@tiles.insertDefinition> Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testsetcurrentcontainer.vm URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testsetcurrentcontainer.vm?rev=749298&view=auto ============================================================================== --- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testsetcurrentcontainer.vm (added) +++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testsetcurrentcontainer.vm Mon Mar 2 13:13:55 2009 @@ -0,0 +1,27 @@ +<#-- +/* + * $Id: testsetcurrentcontainer.ftl 742115 2009-02-08 14:57:41Z apetrelli $ + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--> +<@tiles.setCurrentContainer containerKey="alternate" /> +<@tiles.insertDefinition name="freemarker.test.definition" /> +<@tiles.setCurrentContainer /> +<@tiles.insertDefinition name="freemarker.test.definition" />
