~/talk

Basics of templating with Cro::WebApp

Talkat The Raku Conference 2021 · 2021-08-07..08-12· [web-performance, web-platform]
links:none on file
slides:none on file

Cro::WebApp shows a concrete templating system: templates compile to an AST of objects (not Raku bytecode) and JIT-like compilation happens on first request, yielding about 2x faster renderings in the presenter’s tests. Helpers like render_template and template return HTML streams and wire into Cro::HTTP responses; macros, subroutines, loops and conditionals work as expected. The newer template parts feature lets route handlers skip repeatedly passing shared data (e.g. auth/order), and it integrates with Cro routing and authentication as demonstrated.

AI-written summary · about

  1. 0:00Introduction to Cro::WebApp
  2. 2:10HTML templating basics
  3. 6:09Template helpers and syntax
  4. 10:22Loops and variables
  5. 12:47Subroutines and macros
  6. 14:30Conditional logic
  7. 17:20Template parts
  8. 21:41Why Cro::WebApp templates
  9. 22:15Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.