How to use a custom Project Template in Middleman on Windows
Question
I have created a custom project template for Middleman. The documentation states that I should store templates in the ~/.middleman/
folder. This works fine on Mac, but where should I store the template on Windows 7?
I have tried putting it in a .middleman
folder in the %UserProfile%
directory. But when I run middleman init --help
, the custom template is not displayed in the list of available templates.
Solution
I have resolved the issue. The home path was not what I expected. I ran puts File.expand_path("~/")
in Ruby to find out where Middleman expects the .middleman
directory to be located.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow