huginn
https://github.com/cantino/huginn
Ruby
Create agents that monitor and act on your behalf. Your agents are standing by!
LiquidInterpolatable#interpolation_context
Return the current interpolation context. Use this in your Agent
class to manipulate interpolation context for user.
For example, to provide local variables:
# Create a new scope to define variables in:
interpolation_context.stack {
interpolation_context['_something_'] = 42
# And user can say "{{_something_}}" in their options.
value = interpolated['some_key']
}Edit
git clone [email protected]:cantino/huginn.git
cd huginn
open app/concerns/liquid_interpolatable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-LiquidInterpolatable-interpolation_context-for-pr
# Commit to gitgit add app/concerns/liquid_interpolatable.rbgit commit -m "better docs for LiquidInterpolatable#interpolation_context"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-LiquidInterpolatable-interpolation_context-for-pr
hub pull-request
# Celebrate!