antwarjs / antwar

A static site generator built with React and Webpack.
https://antwar.js.org/
MIT License
460 stars 35 forks source link

Allow theme templates to be overridden with `theme-overrides` #56

Closed bebraw closed 9 years ago

bebraw commented 9 years ago

This should go to Webpack configuration (alias for each theme require we are using).

  1. check theme contents
  2. check theme-overrides
  3. if some override exists, map to that, else map to theme

In addition this allows us to perform theme validation. If some file we expect to exist doesn't, we can give a nice error to the user.

This functionality is needed because we want to allow the users to customize themes.

bebraw commented 9 years ago

Done thanks to https://github.com/antwarjs/antwar/commit/df7264f57a205d087de84bca8c2173bc159b1af0.