You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is a lot of abstraction in dynamic routing. We loop over content directory, read the names of the folders inside and pass it in Abell.meta.$path in theme/[path]/index.abell. You can check it out in https://github.com/abelljs/abell-starter-minima
However, this is too much of abstraction and something that we want to avoid in Abell going forward.
Problems with Current Dynamic Routing
Explaining how this whole thing works is complicated.
Things are bound to certain directory names ([path], content). In some cases it is fine but ideally, we should give helper functions to the user and the user should be one to decide how he wants to loop over a certain directory or what data they want to read.)
What if I have two pages as a layout that want to loop over two different sets of contents? this is just not possible right now.
This is one major issue that stops us from releasing v1.0.0 as the changes are going to affect the important part of Abell.
Goals
Running dev-server by having just one .abell file should still work!
Provide better APIs that explain how Abell is building site
Eleventy allows you to define layout in frontmatter of the content and then drops a content variable in that particular layout with the content of the markdown. https://www.11ty.dev/docs/layouts/
This issue needs some brainstorming about the possible ways to move forward with dynamic routing.
Currently, there is a lot of abstraction in dynamic routing. We loop over
content
directory, read the names of the folders inside and pass it inAbell.meta.$path
intheme/[path]/index.abell
. You can check it out in https://github.com/abelljs/abell-starter-minimaHowever, this is too much of abstraction and something that we want to avoid in Abell going forward.
Problems with Current Dynamic Routing
[path]
,content
). In some cases it is fine but ideally, we should give helper functions to the user and the user should be one to decide how he wants to loop over a certain directory or what data they want to read.)This is one major issue that stops us from releasing v1.0.0 as the changes are going to affect the important part of Abell.
Goals
.abell
file should still work!Additional Information
How different Static-Site-Generators handle this-
Eleventy
Eleventy allows you to define layout in frontmatter of the content and then drops a content variable in that particular layout with the content of the markdown.
https://www.11ty.dev/docs/layouts/
This issue needs some brainstorming about the possible ways to move forward with dynamic routing.
Originally posted by @saurabhdaware in #111
The text was updated successfully, but these errors were encountered: