Creating Functions using _apply

TODO

  • One of the most powerful and subtle Querki power features
  • Example: All Things
  • Example: once again, Sidebar in this Space
  • Review what _apply is, and how it works by default on Things, Properties and Functions
  • Those are all built in, but you can override by defining your own _apply on a Thing
  • _apply is a Function Property, meaning "what to do if this Thing is named in QL"
  • Receives context and parameters, using the built-in bindings
  • Named and typed parameters will come eventually, but this is enough to get going
  • Sidebar shows how you can create higher-level functions around Bootstrap. Very helpful for encapsulating complex Bootstrap functionality. Some will get built-in later, but feel free to play now.
  • Example: Embedded Image in this Space