3.0.0 #118
mattesmohr
started this conversation in
General
3.0.0
#118
Replies: 4 comments 4 replies
-
Where is the documentation for using? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Does the website actually work? What’s the URL, just curious….
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Be able to fully deploy a swift written website to vercel,
https://github.com/swift-cloud/Vercel
I have working code deployed to vercel using
https://github.com/BinaryBirds/swift-html
Working and just trying to solidify my options….does the Svg tag work with HTMLKit
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Any updates on documentation |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have decided to remove the pre-rendering and the context management as it currently exists. As I think it was a good decision back then, now I think the swift language and the server performance has evolved since then, so it would be fair enough to drop it.
Also I think a template engine makes more sense in cases, where the markup language and the language, the engine is written in, are two different languages. In HTMLKit, this ist not the case.
I do know, dropping the pre-rendering costs performance, but I think the results are still acceptable.
I think the decision is worth to bump the package version to 3.0.0. But of course there are more changes coming. I will list them here.
Native statements
Dropping the pre-rendering allows us to use the native statements expression like
if
,else
,for
and string interpolation.View renderer
No pre-rendering means no cache. Therefore I had to change the Vapor provider again. Do use the provider you just have to call
request.htmlkit.render()
in your controller handler. Thats it. You don't have to add a view for pre-rendering anymore.Releases
Alpha 1
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.1
Alpha 2
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.2
Alpha 3
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.3
Alpha 4
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.4
Alpha 5
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.5
Alpha 6
https://github.com/vapor-community/HTMLKit/releases/tag/3.0.0-alpha.4
Beta Was this translation helpful? Give feedback.
All reactions