mirror of
https://github.com/ent/ent.git
synced 2026-05-02 23:50:54 +03:00
doc: add schema and template annotations (#657)
And add gotemplate to highlight.js as a custom language
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user