Comments (8)
As far as manipulating data/context, support for handlebars-helpers was recently added, which includes lots of methods for array/collection manipulation. But this would take place in the handlebars template itself.
Unfortunately, it is not currently possible to add custom helpers (although I for one would say πto a PR that enables this).
from jus.
@djfdev Yeah, I saw that. Unfortunately the sort of pre-transforming/manipulation I'm talking about would not really be possible with simple helpers. π
from jus.
Hey @brandonweiss.
Thanks for considering Jus. I have to say though that I'm not actively maintaining it, and from the looks of it, it doesn't do many of the things you're looking for:
Dynamic pages
Nope.
Filtering data from a data file
Nope. You'll have to pre-filter it somehow.
Custom helpers
Answered above βοΈ
Alternative templating languages
Nope. But in the past I was thinking https://github.com/tj/consolidate.js/ would be a nice way to do this.
All that said, if you feel like moving Jus forward an enabling it to do these kinds of things, I'm happy to help move that along.
from jus.
@zeke @brandonweiss It might be cool to introduce some sort of middleware API to jus. Not sure how this would look exactly, but Iβm imagining some way to generalize building extensions and support for all these types of things without having to modify the jus repo directly.
from jus.
Potentially related to that ^ idea:
from jus.
middleware API to jus
I like this idea
from jus.
@zeke Thanks for getting back to me so quickly! I'm so embarrassed it took me this long to respond. π
I waffled back and forth between proposing some small changes to jus and rolling my own project for some time, and eventually decided to roll my own. Mostly to learn, but also because I am equally opinionated and wanted to try doing a bunch of things in a different way.
Thanks!
from jus.
Thanks for following up π
from jus.
Related Issues (20)
- Consider using `consolidate.js` library for abstracting different template options
- Feature: Add YAML support for 'page' type files (not just for 'datafile' type) HOT 1
- List of excluded files HOT 8
- Inkscape-generated SVG error from `image-size` library HOT 1
- Don't try to parse `svg` fonts as images HOT 4
- Moved jus repos to a GitHub organization! HOT 1
- Replaceable Markdown processor HOT 2
- path-exists should be a dependency, not a dev-dependency?
- Modularizing jus HOT 19
- Serve a unique favicon.ico per project HOT 12
- Automagically generate thumbnails HOT 6
- Remove old 404 Β―\_(γ)_/Β― message
- Remove unneeded 'href-type' dependency
- Overwriting /api HOT 9
- Can we import CSS files from node_modules? HOT 1
- Allow Sass Imports HOT 1
- jus development stalled by Node 4 support HOT 3
- Support for more handlebars helpers HOT 2
- README is not up to date
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 jus.