[dancer-users] About template and main layout
Kadir Beyazlı
kadirbeyazli at gmail.com
Wed Apr 8 17:29:49 BST 2015
08 Nis 2015 19:21 tarihinde "Andrew Beverley" <andy at andybev.com> yazdı:
>
> On Wed, 2015-04-08 at 19:17 +0300, Kadir Beyazlı wrote:
> > > > When I open web page I see error message, and at console there is
> > > > following error message:
> > > >
> > > > /home/kadir/DancerExamples/willbe/public/views/mytemplate.tt is
>
> ^^^^^
>
> > not a
> > > > regular file or reference
> > >
> > > It appears to be looking for the template in your public/views
> > directory
> > >
> > > > content of mytemplate.tt is very simple again
> > > >
> > > > MyApp/views/mytemplate.tt
> > >
> > > But your template is in MyApp/views. The latter is where I'd expect
> > it
> > > to be, so have you configured your templates to be in an alternative
> > > location?
> >
> > No. MyApp name is "willbe".
>
> But it's still looking in willbe/public/views - I'd expect it to be
> looking in just willbe/views, especially as that's where you've said
> you've put the template.
i will check tomorrow from my pc. but it is sure that i did not configure
location. i put my .tt file under folder where it was writing at manual.
but you are right that it searches .tt file under public folder which was
not realized by me when reading error message. i will analysis why it
searhes .tt file under public folder because as remember it soul not be
there.
>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150408/acc25618/attachment.html>
More information about the dancer-users
mailing list