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

Root HTML #43

Closed
1995parham opened this issue Apr 23, 2019 · 2 comments
Closed

Root HTML #43

1995parham opened this issue Apr 23, 2019 · 2 comments
Labels
question Further information is requested

Comments

@1995parham
Copy link

Question
I have a root component that is named root.vugu but I want to have a root HTML file to include general style files and configure some things like HTML header and more. Is there any way for this?

@bradleypeabody bradleypeabody added the question Further information is requested label Apr 24, 2019
@bradleypeabody
Copy link
Contributor

The functionality that is available right now is that in the simplehttp package it provides a basic HTML page that you can customize. The source for it is a package variable here: https://godoc.org/github.com/vugu/vugu/simplehttp#pkg-variables Using a combination of DefaultPageTemplateSource and/or DefaultTemplateDataFunc you should be able to accomplish what you're describing.

Overall, there is a refactor in progress (including this issue: #5) which will allow you to put an tag directly in root.vugu and include the items you describe right in there. I hope to have that feature ready soon and will certainly announce it when it's available.

@1995parham
Copy link
Author

@bradleypeabody Thanks for your complete response. I will check it. I want to thank you for this awesome project. I am trying to create an example project with Vugu in order to show its features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants