Closed
Bug 870486
Opened 12 years ago
Closed 12 years ago
Snippets Refactor: Build snippet templates
Categories
(Snippets :: Service, defect)
Snippets
Service
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hoosteeno, Unassigned)
References
Details
"Snippet templates" are a standard library of snippet types that can be quickly customized to create a new snippet of a particular type.
This bug requires the creation and modification of administrative interfaces:
* We need interface(s) to create/update/delete templates
* We need the capability to choose a template when creating a snippet
Comment 1•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/snippets-service
https://github.com/mozilla/snippets-service/commit/721359a19d0937b905edd3f29f4062b602553454
Fix Bug 870486: Add snippet templates.
Adds a model SnippetTemplate, which contains a jinja2 template that is
used to render a snippet. Info about the variables available in the
template is stored as SnippetTemplateVariables.
The Snippet admin now presents a widget that lets admins choose which
template to use, and shows them fields for filling in the variables
from the template. When rendered, the snippets render the template,
passing in the data entered in the admin to generate the output.
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•