Comments (5)
I'd be curious to see your reworked HelloWorld! I have started one myself here: https://github.com/Tarmil/bolero.template.structured
from bolero.
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 <template>...</template>
into a separate html file, and load it the same way you load main.html.
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 :
- How to implement and organize submodels.
- How to push data/messages from the server to the client.
- How to handle long-running queries from the client, with replies from the server.
- How to transfer large data between client and server. E.g. a file being downloaded.
- A more advanced menu than the one currently used. Preferably hierarchical in some way.
I guess some of this is too complex for the template, and should rather be available elsewhere, e.g. in the docs.
from bolero.
@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 dotnet new
for those of us that want to use Bolero with this structured approach by default? Or adopt the structured approach over the simplified one?
from bolero.
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 ..
from bolero.
https://github.com/deyanp/FSBoleroHelloWorldComponents ...
from bolero.
Related Issues (20)
- Uncaught SyntaxError: import.meta may only appear in a module HOT 13
- Need more blazor component example integration (actually we need more demos)
- Question : DataGrid(QuickGrid) can have no date on web browser. HOT 4
- Question : DataGrid(QuickGrid) How can I update on client side. HOT 1
- crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] HOT 7
- Is there a plan to upgrade to Elmish v4? HOT 2
- Use endpoint routing for remoting HOT 5
- How to get an element reference when using templates HOT 4
- How to make Select and option elements in HTML HOT 2
- Debugger: The request reached the end of the pipeline without executing the endpoint: 'Fallback {*path:nonfile}' HOT 3
- Support CSS isolation for Bolero components
- Types that mutually recur are unable to be serialized with System.Text.Json.
- feature request: Support SignalR based data subscriptions without affecting hot reloading HOT 2
- Could not load file or assembly 'Elmish, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null' HOT 3
- is it possible to extend Bolero HTML Builder CEs with `CustomOperation`? HOT 3
- "SetPage" duplicated when dispatched through Cmd.ofMsg HOT 5
- Error, unable to access property from server side remoting implementation HOT 2
- Scoped css: scope name not generated as documented HOT 8
- How do we use components in HtmlTemplates HOT 2
- [Debugging] Breakpoint is only hit on the first load HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolero.