GithubHelp home page GithubHelp logo

Comments (2)

domenic avatar domenic commented on June 2, 2024

Fascinating. I've never used this feature of Jade, but it seems pretty cool. I'm not sure how or whether it should integrate with jadeify. For example, can I define a template (like normal jadeify) and a mixin? What about several mixins? The readme implies the name matters but doesn't give an example of more than one mixin.

My initial instinct is that this is better as a separate package, but I'm willing to be persuaded.

The hackiness is also pretty crazy. Have you considered asking the Jade maintainer for some new APIs that would make it less hacky? The eval in particular is concerning.

from jadeify.

jonnyscholes avatar jonnyscholes commented on June 2, 2024

It is very useful - but you're right it is a very, very hacky workaround the lack of a mixin API. It just got even more hacky as it now supports mixins within mixins - which is a concern but the end result is very useful...

There is some chatter over here but it depends on another PR in 2.0 that sounds like it may not get in.

I think I could make them work together - but it would probaly require an API change for jadeify. After further thought I think it should probably stay separate unless it becomes less hacky. Whilst it works and I will add some tests I feel like it may well end up being a maintenance nightmare considering it relies on unexposed functionality to work. Cheers for even considering it though :p

from jadeify.

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.