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

Use .html templates in the @markup #45

Open
dsteinel opened this issue Feb 17, 2017 · 1 comment
Open

Use .html templates in the @markup #45

dsteinel opened this issue Feb 17, 2017 · 1 comment

Comments

@dsteinel
Copy link

Hey,

to keep the styleguide living, it would be awesome to import a html file within the @markup annotation instead of hardcoding/duplicating it.
Like that you would be able to define more complex structures and keep the documentation within the scss quite short, cause no markup has to be written there. And if the structure changes, you only have to adjust it in your html which you are actually using.

/**
 * @structure Header
 * @description
 *  Nice looking header with a navigation bar
 * @markup 
 *  @{include:header.html}
*/

Are there any plans for that so far?

@gotofritz
Copy link

We had the same problem, so we forked the project and added a @{template: path} substitution.
Hopefully they'll accept the PR, if not you can find our fork here:
https://github.com/wcm-io-frontend/nucleus/tree/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

2 participants