forked from DAB0mB/Appfairy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pages can be placed in folders in Webflow. Before this change, those pages were ignored and simply copied into the "public" directory. After this change, files in the input ".appfairy" directory (and all its subdirectories) are divided into HTML files and "other" files. Other files are copied into the "public" folder and modified in-place as needed (css, for example). HTML files are transpiled into views and written into: src/views/[folder/subfolder]/SomeView.js Controllers are expected to be in the corresponding location: src/controllers/[folder/subfolder]/SomeController.js Child views (elements with af-el="name" attribute) are written into the same directory as the parent view. src/views/index.js only includes the root views and their childs. This change makes it possible to create a namespace for a page and its children by placing a page in a folder.
- Loading branch information
Showing
4 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters