Comments (3)
Just wanted to add a note from our call here to potentially use top level keys to identify children. Let's say our content object looks like:
{
'/projects': {},
'/projects/a': {},
'/projects/b': {},
'/projects/c': {}
}
Calling page('/projects').children()
could return /projects/a, /projects/b, /projects/c
since they share the same prefix. This may allow us to keep our content a little more concise, instead of the current:
{
'/projects': {
pages: {
'/projects/a': {},
'/projects/b': {},
'/projects/c': {}
}
},
'/projects/a': {},
'/projects/b': {},
'/projects/c': {}
}
Jumping into a new build tomorrow, if it's helpful, I could scaffold this flat structure, while also thinking about some cleanup.
from enoki.
Sounds awesome, feel free to scaffold and we can work it in via a pull request! Down to integrate this first, then follow up with the gr8
-esque utilities extensibility, then publish as a standalone module.
from enoki.
from enoki.
Related Issues (16)
- Modularize
- Nested/repeated fields HOT 1
- [Feature request] syndication plugin for Twitter, Medium, Etc HOT 1
- Rename enoki.json HOT 7
- Random Enoki dev experiences/thoughts HOT 2
- Running into a problem when updating my Enoki site, and then hosting it over HTTP via the Dat CLI HOT 2
- Caching issues over https HOT 2
- Feature Request: Ability to pass in a Hyperdrive instance HOT 4
- Testing
- Access to Enoki Panel HOT 4
- question: hasViewOrBlueprint() HOT 2
- complex yaml HOT 2
- file watch HOT 1
- gif image filetype HOT 1
- psa: helpers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enoki.