20,741
edits
Line 3: | Line 3: | ||
== Objective == | == Objective == | ||
Demonstrate how to put context specific functionality (APIs) into so called '''driver hashes''' to easily switch between different front-ends or back-ends respectively. | Demonstrate how to put context specific functionality (APIs) into so called '''driver hashes''' to easily switch between different front-ends or back-ends respectively. | ||
== What is a driver hash == | |||
It's a conventional Nasal hash (imagine it like a namespace), which typically contains callbacks, i.e. functions. Driver hashes are usually nested in an outer hash, where a key can be used to look up the concrete implementation. | |||
== Problem == | == Problem == |