8000 To have a folder structure inside components folder (subcomponents?) · django-components django-components · Discussion #1249 · GitHub
[go: up one dir, main page]

Skip to content

To have a folder structure inside components folder (subcomponents?) #1249

Answered by JuroOravec
AhmedSeraje asked this question in Q&A
Discussion options

You must be logged in to vote

I think you should be able to introduce extra depth to the components folders, e.g.

|-- components/
|    |-- auth/
|         |-- loginmodal/
|              |-- loginmodal.html
|              |-- loginmodal.js
|              |-- loginmodal.py

I use the following setup:

  1. I use components to render whole HTML pages, so I se 8000 parate "page" components and "component" components.
    • I put "page" components in <app>/page directories and regular components in <app>/componentsdirectories
  2. I differentiate between UI building blocks like generic buttons, etc, and between "business logic" components.
    • I put the UI building blocks in the root components/ dir, while business logic is all in corresponding …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AhmedSeraje
Comment options

Answer selected by AhmedSeraje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0