There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
/* | |
AjaxHook.js - A simple utility library for intercepting Ajax calls. | |
This may be useful to inject simple interceptors to analyze pr capture Ajax traffic and may be even useful for automation tests to determine when an Ajax response returns. | |
To use : | |
1>Create a new AjaxHook object | |
var hook = new AjaxHook(); |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"routes" | |
"net/http" | |
) |
package main | |
import ( | |
"io" | |
"log" | |
"net/http" | |
) | |
func main() { |
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
type Message struct { |
package main | |
import ( | |
"fmt" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/securecookie" | |
"net/http" | |
) | |
// cookie handling |
package main | |
import ( | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/handler" | |
"net/http" | |
) | |
type Todo struct { | |
ID string `json:"id"` |