# `mix elementorex.gen.template`
[🔗](https://github.com/rocket4ce/elementorex_cms/blob/v0.1.0/lib/mix/tasks/elementorex.gen.template.ex#L1)

Generates a templates module (see `ElementorexCms.Templates`): sections that
the editor inserts from its *Templates* panel.

    $ mix elementorex.gen.template Marketing

Creates `lib/my_app_web/editor_templates/marketing.ex`. Register it:

    config :elementorex_cms, templates: [MyAppWeb.EditorTemplates.Marketing]

Options: `--namespace` (default `MyAppWeb.EditorTemplates`), `--force`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
