Giter Club home page Giter Club logo

Comments (8)

djfdev avatar djfdev commented on September 22, 2024

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.

brandonweiss avatar brandonweiss commented on September 22, 2024

@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.

zeke avatar zeke commented on September 22, 2024

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.

djfdev avatar djfdev commented on September 22, 2024

@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.

djfdev avatar djfdev commented on September 22, 2024

Potentially related to that ^ idea:

#24, #38, #41, #58, #76, #81

from jus.

zeke avatar zeke commented on September 22, 2024

middleware API to jus

I like this idea

from jus.

brandonweiss avatar brandonweiss commented on September 22, 2024

@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.

zeke avatar zeke commented on September 22, 2024

Thanks for following up πŸ‘

from jus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.