doc: add schema and template annotations (#657)

And add gotemplate to highlight.js as a custom language
This commit is contained in:
Ariel Mashraki
2020-08-04 22:14:00 +03:00
committed by GitHub
parent b5a9c66290
commit 2a0c219f9d
5 changed files with 146 additions and 2 deletions

View File

@@ -111,8 +111,7 @@ as follows:
entc generate --template <dir-path> --template glob="path/to/*.tmpl" ./ent/schema
```
Example of a custom template provides a `Node` API for GraphQL -
[Github](https://github.com/facebookincubator/ent/blob/master/entc/integration/template/ent/template/node.tmpl).
More information and examples can be found in the [external templates doc](templates.md).
## Use `entc` As A Package