Please check the error on the line that calls template.New. I believe it's
reporting failure.
-rob
On Sat, Mar 25, 2017 at 9:56 AM, priyank pulumati <
pulumati.priy...@gmail.com> wrote:
> Sry for little info, template.Base is a constant ("templates/base.html", a
> path) and the same for templat
Sry for little info, template.Base is a constant ("templates/base.html", a
path) and the same for templateName passed from my controller.
But what do i pass in template.New() ?
On Saturday, March 25, 2017 at 10:17:23 PM UTC+5:30, Yves Junqueira wrote:
>
> Your ParseFiles call has a "templateName"
Sry for little information, templateName is passed from my controllers with
a constant (like "templates/home.html"), so there is no problem with that.
In template.new(), what do i pass ?
On Saturday, March 25, 2017 at 10:17:23 PM UTC+5:30, Yves Junqueira wrote:
>
> Your ParseFiles call has a "tem
Your ParseFiles call has a "templateName" argument in it. The ParseFiles
function only takes file paths, not template names.
And templates.New takes a template name, not a file path.
Hope this helps.
On Sat, Mar 25, 2017 at 9:14 AM, priyank pulumati <
pulumati.priy...@gmail.com> wrote:
> hello,