an
saurus
tags:
grails
namespaces
templates
views:
145
answers:
1
Q:
In Grails template namespace how do you use a template that is in another directory
+2
A:
<g:render template="/sample/mytemplate" />
should do it.
Jean Barmash
2009-12-23 04:47:30
I'm sorry, but I wasn't clear enough in my question. I wanted to know if there was a way to do it with the tmpl syntax.Similar to<tmpl:mytemplate ...>Except that I don't know what syntax to use for the directory.
Andrew
2009-12-23 15:29:29
Grails does not currently have a syntax to use the <tmpl:template ...> namespace, you have to use render instead.
Blacktiger
2009-12-23 18:20:46
Thanks for the info.
Andrew
2009-12-24 15:37:15
related questions
Does anyone know where to find free database design templates?
Checking Inheritence with templates in C++
C++ Template Ambiguity
Can a STP template be hidden from subsite creation page?
Wordpress Category Template Question
Templates In VB
Deciphering C++ template error messages
How can I add reflection to a C++ application?
Insert current date in Excel template at creation
Getting Apache to modify static webpages on the fly
Is it possible to convert projects wizard created for MSVS 2005 to MSVS 2008 format automatically
What are the differences between "generic" types in C++ and Java?
Templates spread across multiple files
Changing default file structure in a Java Struts App
Change templates in XCode
What are the differences between Generics in C# and Java... and Templates in C++?
Do you have any recommended File templates for resharper for VB.Net
Template typedefs - What's your work around ?
How I hide empty Velocity variable names ?
Where can I find decent visio templates/diagrams for software architecture?
Resources on wordpress theme-development
Creating Visual Studio templates under the "Windows" catagory.
GCC problem : using a member of a base class that depends on a template argument
A Stack Overflow Podcast throwback: What is to be done about tag soup?
What sites offer free, quality web site design templates?