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

Can I have and HTML and a CSS file separately #60

Open
robinparadise opened this issue May 31, 2020 · 2 comments
Open

Can I have and HTML and a CSS file separately #60

robinparadise opened this issue May 31, 2020 · 2 comments

Comments

@robinparadise
Copy link

Is your feature request related to a problem? Please describe.
I would like to use files separately.
I don't like Single Files Components when I work with a team.
I need the designer and the layout artist work without knowing that we are using hydrogen o whatever framework.

Describe the solution you'd like
I want to import an html file an render it into hydrogen:
Ex:
const pageIndex = fs.readFileSync('./pages/index.html').toString()
const page = ({ data }) => pageIndex // 🤔 I don't know how to mix with string literals

Additional context
I need file separately because designers and layout artists can works individual without any dependency on each other.

@shailen-naidoo
Copy link
Collaborator

HI @robinparadise sorry for the late reply. You can definitely do that for, do you also want to be able to pass data to the HTML file template?

@shailen-naidoo
Copy link
Collaborator

@robinparadise Hey, it's been a while. Have you managed to solve for your problem?

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