[ANN] Treetop - A tool to create request handlers for nested templates

44 views
Skip to first unread message

ruaidhr...@gmail.com

unread,
May 3, 2020, 11:10:35 PM5/3/20
to golang-nuts
Announcing the Treetop Go library for HTML applications.

I recently deployed a rewrite of a large internal CRUD application at work. The new project made heavy use of the nested template features of the Go html/template package.

I took some time recently (weekends in lockdown!) to tidy-up the template management library that was used in that project. Feedback would be very welcome...


Template Protocol 

The legacy app had a very extensive AngularJS codebase to support various interactive features. To avoid porting or rewriting that code, I incorporated a mechanism that enabled server handlers to render page partials. Hot-swapping HTML fragments proved to be adequate to achieve the controls we needed, quickly and with a relatively minimal client-side codebase.

The outcome was so satisfactory that I created a series of examples apps to demonstrate some of the controls we came up with. 


If you like the project please add a star to the repo so that more devs will see it!

Reply all
Reply to author
Forward
0 new messages