-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Discussion] Do we need to add advice on usage of dynamic bloc #121
Comments
In terms of functionality, On the other hand, In contrast, fragments used with |
That's precisely the documentation with which I'm still unsure if I'm dooing the right thing. In the exemple I provided, yes I'm using Given my basic testing it seems I get it correctly. If so, what I would like to see / propose is a more basic explanation of how to compose function call in order to build a view from the tinyest function up to a complete page. I what to state loud and clear that If i'm using html flow the right way on this, I was after that kind of composition for a LOOOOONG time. In fact since I've toyed for the first time with react back in 2013, but in a java template environement. |
1. Spring Petclinic ExampleHave you already checked out https://github.com/xmlet/spring-petclinic? I was expecting that the sample implementation of the Spring Petclinic using HtmlFlow would provide enough examples for most use cases when building a web app in Spring MVC with HtmlFlow, specifically regarding layouts, fragments, data binding, and similar features. 2. Use of
|
We’re are getting close to what I’m looking for. Your last exemple is what I started doing at first to limit the number of dynamic blocks, mostly because I’m lazy. but the I thought that what I really want is cache as mouche possible of my template, and keep the least possible content inside my dynamic blocks. I didn’t conduct any performance testing on this subject. Do you know which approche is more efficient and why? if in such a case there is a clear benefit for one or the other that’s what I would like to see more proéminent on the project’s website. |
In the last few days I'm using more and more HtmlFlow.
At first i tended use dynamic bloc in the lowest place possible in the html tree.
Then I wonder what would happened if I switched to a using it the other way arround.
Now I'm back to the lowest place possible.
My reason is to be able to compose my page view more easly.
See some of my exemples
This is one of the cool thing of this library, we can compose views.
What I want to discuss is, should the documentation push the user in using the dynamic block on the lower position.
What I assume to be a side benefit is the fact that the cache of the view is better used with the way of using htmlFlow.
The text was updated successfully, but these errors were encountered: