You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
The module includes a number of features on top of the standard [text/template](https://pkg.go.dev/text/template) package, including:
10
10
11
11
*[x][Support for JavaScript snippets in templates](#using-javascript).
12
-
*[x] ES5 Support provided by [otto](https://github.com/robertkrimen/otto).
12
+
*[x] ES5 Support provided by [goja](https://github.com/dop251/goja).
13
13
*[x] Built-in support for [underscore.js](http://underscorejs.org/).
14
14
*[x] Import JavaScripts scripts from other files and inline JavaScript snippets.
15
15
*[x] Modify the templating context from within JavaScript.
@@ -25,7 +25,7 @@ go get github.com/speakeasy-api/easytemplate
25
25
26
26
## How does it work?
27
27
28
-
Using [otto](https://github.com/robertkrimen/otto), `easytemplate` adds a superset of functionality to Go's [text/template](https://pkg.go.dev/text/template) package, with minimal dependencies and no bulky external JS runtime.
28
+
Using [goja](https://github.com/dop251/goja), `easytemplate` adds a superset of functionality to Go's [text/template](https://pkg.go.dev/text/template) package, with minimal dependencies and no bulky external JS runtime.
29
29
30
30
`easytemplate` allows you to control templating directly from scripts or other templates which among other things, allows you to:
31
31
@@ -220,10 +220,10 @@ You can also register JavaScript functions from Go. For example:
0 commit comments