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
Child/nested components? #54
Comments
Ignore that, figured it out, and this helped me: https://github.com/nojaf/elmish-component I have reworked the HelloWorld sample with components, but not sure if it is fully correct, and if you are interested in such .. |
I'd be curious to see your reworked HelloWorld! I have started one myself here: https://github.com/Tarmil/bolero.template.structured |
I've done work on this in my business project, but I don't know yet if it's ok or needs fixing. Will study the links above. My initial work can be seen in the repro uploaded for this issue: #55 I don't think I split the html in that early revision, but it's as easy as snipping a I think it will mean a lot for Bolero's popularity that template(s) contains demo code illustrating the basic things you need to get started with development, as well as some structure that can guide the developer in expanding the application. A list of things I can think of at the moment :
I guess some of this is too complex for the template, and should rather be available elsewhere, e.g. in the docs. |
@Tarmil I used your github for the template for a more structured approach successfully, and was even able to split the nav into the actual page header without issue. Perhaps you could offer another template with this approach with |
How can I extract Model/Message/Html Template for subcomponents into separate folders/files?
The (otherwise excellent) HelloWorld sample has all the code in Main.fs, and all the templates in main.html ...
The text was updated successfully, but these errors were encountered: