Max Meyer

Greenhorn
+ Follow
since Dec 27, 2013
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Max Meyer

Fixed it!

The first templates needs to work with #parse instead of #include as #include just puts out text and does not recognize any other statements
Hi there,

i've got the following Folder Structure
-templates
--template1.vm
--template2.vm
--anotherdirectory
---template3.vm
---template4.vm

in template1.vm i got this code

#include("./templates/anotherdirectoy/template3.vm")

which works nicely

in template3.vm i got the following code

#include("./templates/anotherdirectory/template4.vm")

wich does not work at all in template1

So i've got the situation that the second include in template3 does not work when template3 ist included in template1, hope you all understand what i'm trying to say.

Does anyone have an idea of what the problem could be? Or is this a velocity limiation

EDIT: I think i need to clarify

what happens is that template1 gets used in this template we have included template3 the conents of template 3 are displayed correctly
BUT as mentioned in template3 is template4 included

template1's output looks now the following


"blbalblablabla
content of template 3
#include("./templates/anotherdirectory/template4.vm")"

So the include statement in template3 gets not "included" it only outputs the include statement as statet in the file