micromata/Baumeister

Need support for relative url's in handlebar templates

macgregor-thompson opened this issue · 1 comments

First I have to say, you've done an absolutely fantastic job with this project. But I do have one thing that would be super useful, especially when using the handlebars side of things for generating static web pages. I'd really like there to be support for relative urls in the templates. It's really nice having the IDE confirm paths are correct, and then also get generated properly. Similar to the way Assemble did it like the following:
<a href="{{relative page.dest "dist/foo.html"}}">Foo</a> Like I said, the best part of this was that my Webstorm IDE was able to confirm the paths, and then generate them appropriately when the static pages were generated.

But the other big one, was being able to link to the assets directory.
<link href="{{assets}}/css/bar.css" rel="stylesheet">

Note* - For many of our sites, I've used generator-assemble. But it's pretty much deprecated and relies on bower, grunt, etc. Anyway, if this is something you can fold in that would be awesome. If anyone knows a way I can get the above behavior another way, that would be awesome!

This project is unmaintained 😢
See Note in Readme.