Giter Club home page Giter Club logo

Comments (3)

mlrawlings avatar mlrawlings commented on September 18, 2024

Good question. arc@1 required a proxy to be configured based on what was being adapted. arc-marko was one of these proxies.

arc@2 is taking a more generic approach, which means that package is no longer necessary. I have an example Marko app that I can add to the repo. I'll leave this issue open until it's added.

There are still some limitations around the current approach:

  • a tag will need to have a "base tag" (one without flags)
  • flagged versions of a tag will need to be siblings in the file tree

So using Marko with arc@2 currently looks like this

components/
    custom-tag/
        index.marko
    custom-tag[mobile]/
        index.marko

This is part of the reason why arc@2 is still in alpha, but I believe we have a viable solution for these current limitations. You should eventually be able to have a structure that looks more like using Marko with arc@1 (but no need for the index.arc file):

components/
    custom-tag/
        [desktop]/
            index.marko
        [mobile]/
            index.marko

from arc.

lighteness avatar lighteness commented on September 18, 2024

thanks for the reply. very appreciate it

from arc.

mlrawlings avatar mlrawlings commented on September 18, 2024

The (wip) Marko example is here:
https://github.com/eBay/arc/tree/master/packages/example-marko-lasso

from arc.

Related Issues (1)

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.