Giter VIP home page Giter VIP logo

Comments (3)

allmarkedup avatar allmarkedup commented on August 16, 2024

This is actually expected behaviour - a component folder (one in which the name of the folder matches the name of the component view template) can't contain other components, which the preview layout is. regular folders (collections) can contain multiple components however. Should add something to the docs about this though maybe.

Does that make sense? Is the difference between a 'collection' and a component in a directory clear?

from fractal.

paulrobertlloyd avatar paulrobertlloyd commented on August 16, 2024

Ah right, it does makes sense. I may be trying to be too precise, but if I wanted to have a specific preview for each (or many) components, I would end up with a lot of preview layouts (somewhere). Not a big issue, but worth pointing out.

from fractal.

allmarkedup avatar allmarkedup commented on August 16, 2024

Yeah I can see that. I guess I just didn't think of preview layouts as much more than just adding stylesheet and JS links so didn't imagine needing more than a couple. I could maybe make it so that if you have a preview.hbs or similarly named layout in the same directory as your component then it's uses that for the preview layout by default.

I'll have a think if that has any other implications...

from fractal.

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.