I’m trying to implement templates that inherit from a base/default template. I’ve followed along with the docs, with bep’s implementation, and with the ACE inner example without any luck.
I’m using Hugo v0.14
layouts/_default/baseof.ace:
= doctype html
html lang=en
head
meta charset=utf-8
title Base and Inner Template
body
h1 This is a base template
= yield main
layouts/index.ace:
= content main
h1 This is from the inner template
Error: index.html:1: invalid syntax
Error while rendering homepage html/template: "index.html" is an incomplete template
I copied and pasted your templates into mine – and it works as expected. So there is something else in play. Maybe you are not using the Hugo version you think you’re doing? Wild guess …
I’m currently on Windows, but hoping to have my new Mac very soon. I was trying to convert an existing project using Go Templates over to Ace. I’ll give a new project a shot using Ace to see how it goes before I send out the failing project.
EDIT:
Just started a brand new project with layouts that only include index.ace, and /_default/baseof.ace (exactly as seen above), and I get the same error.
I guess I have only tested this on my Linux box. Damn those Windows file paths. Should have added some tests Will check your project – and check it out on Windows.
I have a win evnironment variable GOPATH set to C:\go\workspace. After running go get I have a src directory that contains several more directories: bitbucket.org, github.com, golang.org, gopkg.in
I’m just not seeing an executable as noted in the README.