Git Product home page Git Product logo

Comments (3)

chrislopresto avatar chrislopresto commented on July 2, 2024

@jamesarosen Interesting use case. We should try to come up with a nice pattern for this.

Right now, the addon's snippet finder uses naive text matching during the build step to look for the opening and closing freestyle-usage curlies. It has no concept of usage within an iterator.

What you'd need to do right now is create separate snippet files and reference them by name in your each block. This would probably be annoying to maintain, but it would work.

I have been mulling over something that could be semi-related, so let me know if you want to chat / pair.

from ember-freestyle.

jamesarosen avatar jamesarosen commented on July 2, 2024

Now that I think about it, perhaps I don't really want snippets for each of these. If they're really all variants on the same code, then I can do the code once at the top and then write all the instances as a table or a list or something.

from ember-freestyle.

chrislopresto avatar chrislopresto commented on July 2, 2024

Ok. I'll close this in the meantime but continue to think this through.

Cheers.

from ember-freestyle.

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.