<p>Hi Andrew,</p>
<p>08 Nis 2015 18:41 tarihinde "Andrew Beverley" <<a href="mailto:andy@andybev.com">andy@andybev.com</a>> yazdı:<br>
><br>
> On Wed, 2015-04-08 at 15:30 +0300, Kadir Beyazlı wrote:<br>
> > get '/' => sub {<br>
> >      "hello"<br>
> > };<br>
> ><br>
> > start;<br>
> ><br>
> ><br>
> ><br>
> > When I run it  and write <a href="http://localhost:3000/">http://localhost:3000/</a> to browser I see word<br>
> > 'hello' but I don't see layout info of <a href="http://main.tt">main.tt</a>.<br>
><br>
> I haven't checked for sure, but I suspect <a href="http://main.tt">main.tt</a> is only used when you<br>
> use the template keyword. You'll need something like:<br>
><br>
> get '/' => sub {<br>
>     template 'hello';<br>
> };<br>
><br>
> Where "hello" is another template called <a href="http://hello.tt">hello.tt</a><br>
i will check it from manual and test tomorrow.<br>
><br>
> > Another problem is that I change code as follow:<br>
><br>
> > get '/' => sub {<br>
> >     template '<a href="http://mytemplate.tt">mytemplate.tt</a>', {<br>
> >         'word' => 'test',<br>
> >   };<br>
> > };<br>
><br>
> > When I open web page I see error message, and at console there is<br>
> > following error message:<br>
> ><br>
> > /home/kadir/DancerExamples/willbe/public/views/<a href="http://mytemplate.tt">mytemplate.tt</a> is not a<br>
> > regular file or reference<br>
><br>
> It appears to be looking for the template in your public/views directory<br>
><br>
> > content of <a href="http://mytemplate.tt">mytemplate.tt</a> is very simple again<br>
> ><br>
> > MyApp/views/<a href="http://mytemplate.tt">mytemplate.tt</a><br>
><br>
> But your template is in MyApp/views. The latter is where I'd expect it<br>
> to be, so have you configured your templates to be in an alternative<br>
> location?<br>
No. MyApp name is "willbe". <br>
><br>
> Andy<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> dancer-users mailing list<br>
> <a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
> <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</p>