Hi, Well I have a layout main which include my template. My index.tt is huge and I want to split it into many partial file. I want to do something like this : <div> <div class="tabs" <% INCLUDE tabs %> </div> <% INCLUDE shorten %> <% INCLUDE sidebar %> </div> ... well instead of having one huge index file. How can I do that ? I have try but Template tell me that "tabs" is missing.
hey On Sat, Mar 26, 2011 at 1:58 PM, Geistteufel <geistteufel@yahoo.fr> wrote:
I want to do something like this :
<div> <div class="tabs" <% INCLUDE tabs %> </div> <% INCLUDE shorten %> <% INCLUDE sidebar %> </div>
... well instead of having one huge index file.
How can I do that ?
You'll need the extension as well: <% INCLUDE tabs.tt %> <% INCLUDE shorten.tt %> <% INCLUDE sidebar.tt %>
Lol, I have test this already, and tell me file not found ! in fact I have write the file in the bad place, not in views, mistake with MacVim ... ok It works ! I will split up my code :) thanks Le 26 mars 2011 à 13:30, sawyer x a écrit :
hey
On Sat, Mar 26, 2011 at 1:58 PM, Geistteufel <geistteufel@yahoo.fr> wrote: I want to do something like this :
<div> <div class="tabs" <% INCLUDE tabs %> </div> <% INCLUDE shorten %> <% INCLUDE sidebar %> </div>
... well instead of having one huge index file.
How can I do that ?
You'll need the extension as well:
<% INCLUDE tabs.tt %> <% INCLUDE shorten.tt %> <% INCLUDE sidebar.tt %>
participants (2)
-
Geistteufel -
sawyer x