-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrays/external template #35
Comments
There is no difference in the way doT treats external or inline templates. Btw, this may help you to find the problem: you can get the source of the compiled function doT generates with: On 2012-07-17, at 4:23 AM, aveiros wrote:
|
Hello again, I guess what im looking for is the following code (snippet), for external files: #1 file: advancedsnippet.txt
Following i post my current code... #2 file: main.tpl
#3 file: secundary.tpl
#4 data to apply in main.tpl
The above example runs and i get the expected results. thank you |
managed to get it working :) file: main.tpl
aveiros |
Hello,
Im having some issues when using array iteration and external templates. I have the following code:
main_template:
data for the main_template:
when im using tpl_brother2 snippet works ok, i have access to "name" property of each brother. but when i use the tpl_brother1 snippet i get a error that i cant access "name" property...
any suggestions to solve this?
thanks
aveiros
The text was updated successfully, but these errors were encountered: