From ca3f3ba323cb2df6c420f136242660a92e8dedad Mon Sep 17 00:00:00 2001 From: Robert Krimen Date: Wed, 10 Oct 2012 18:23:54 -0700 Subject: [PATCH] Add note about underscore to the synopsis --- README.markdown | 11 +++++++++++ otto.go | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.markdown b/README.markdown index b1a2f8f..e917632 100644 --- a/README.markdown +++ b/README.markdown @@ -72,6 +72,17 @@ Run JavaScript by entering some source on stdin or by giving otto a filename: $ otto example.js +Optionally include the JavaScript utility-belt library, underscore, with this import: + + import ( + "github.com/robertkrimen/otto" + "github.com/robertkrimen/otto/underscore" + ) + + // Now every otto runtime will come loaded with underscore + +For more information: http://github.com/robertkrimen/otto/tree/master/underscore + Caveat Emptor * For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress. diff --git a/otto.go b/otto.go index 7a605bb..3bd29a6 100644 --- a/otto.go +++ b/otto.go @@ -69,6 +69,17 @@ Run JavaScript by entering some source on stdin or by giving otto a filename: $ otto example.js +Optionally include the JavaScript utility-belt library, underscore, with this import: + + import ( + "github.com/robertkrimen/otto" + "github.com/robertkrimen/otto/underscore" + ) + + // Now every otto runtime will come loaded with underscore + +For more information: http://github.com/robertkrimen/otto/tree/master/underscore + Caveat Emptor * For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress.