juliandunn / library-demo-cookbook

Cookbook to illustrate how to write helper libraries
Other
9 stars 9 forks source link

Create example on how to add a method for lazy searches #1

Closed miketheman closed 9 years ago

miketheman commented 10 years ago

Feature request.

A library function that returns the value of a search, which is not executed at compile time, only when called in a recipe. Also, should only be called once per run, so if multiple sub-recipes need the return value, only a single search will be performed.

juliandunn commented 9 years ago

That sounds like a neat thing but I don't think it belongs in a general purpose "how to write a library" cookbook. Feel free to make your own demo, though!