Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow co-location of support components #123

Open
NullVoxPopuli opened this issue Jan 12, 2022 · 0 comments
Open

Allow co-location of support components #123

NullVoxPopuli opened this issue Jan 12, 2022 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

For example:

docs/
  {whateverPath}
    home/
      index.md
      content-a.hbs
      content-b.hbs
      content-c.gjs
      content-d.gts
      etc

this way, you don't need to place components in totally unrelated places in your docs app. co-location for everything.

In the index.md, it could have snippets like:

# My Heading

```gjs live
import { ContentC } from './content-c';
import { default as ContentB } from './content-b';

<template>
  <ContentC />
  <CnotentB />
</template>
```

```gjs live
import ContentA from './content-a';

<template>
  <ContentA @arg={{2}} />
</template>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant