Description
In frontity themes are structurally the same than any other package. But treating them at the same level has some problems to start understanding how Frontity work:
- Themes are a special type of packages (the most important one?) because no frontity project has sense without a theme
- For wordpress developers a theme and plugins (packages) are separated concepts and easier to understand
- With the current way of defining a frontity project through
frontity.settings.js
you have to understand to start working with a theme- Namespaces (a namespace is asked when
create-package
and in frontity.seetings.js you see things such asstate.theme.someThing
- Packages
- Packages are organized though namespaces
- Namespaces (a namespace is asked when
Examples
Possible solution
Create another command called create-theme
This command:
- Will automatically assign the
theme
namespace - We could provide templates for different types of themes (or just re-using exisitng themes code into a new one)