Skip to content

Releases: mesopelagique/Tricho

🍖 Latrodectus mactans

20 Jun 10:02
Compare
Choose a tag to compare
  • Supporter render data using a template with render function

Template engine is 4D tags and the data are passed using $1

$data:=New object("lastname";"meso")
$router.get("/template";Formula($2.render(Folder(fk resources folder).file("template.html");$data)))

Template

 <!--#4DEVAL $1.lastname -->

Bugs

  • Fix unregister router with non strict mode

🕷 Tarantula

19 Jun 20:42
Compare
Choose a tag to compare
  • strict boolean configuration variable

Disabled by default, “/foo” and “/foo/” are treated the same
To enable

$router.strict:=True // Enable strict routing. 
  • Experimental features to register a router into another parent router
$anOtherRouter.path:="/subpath"
$router.register($anOtherRouter)

📍 Aoûtat

19 Jun 05:23
Compare
Choose a tag to compare
  • Router with basic functions
  • Hander
  • Utility methods