A chunk of dynamic content you can render anywhere.
A snippet is created in our text editor and output wherever you need it:
- Snippets are shared by an organization, and anyone in the organization can edit its snippets.
- Snippets are assigned an
id, a unique, permanent identifier, which you can use to refer to it.
- Snippets are output in your application using our SDKs or API.
To view your organization’s snippets, sign in to your account, and we’ll automatically direct you to your current organization’s snippets.
We’ll call this your “Snippets dashboard”, and the rest of this article will assume you’re starting here.
If you ever get lost, you can return to your snippets dashboard by clicking Jahuty in the top left of the navigation menu.
When you create your account, we’ll automatically create two snippets for you to get started.
To create a new snippet:
- Visit your snippet dashboard.
- Click the New snippet button in the top right.
Our text editor works like Google Docs or Microsoft Word:
- Click anywhere and start typing.
- Highlight any text, and use the menu that pops up to format your text. You can use the same menu to add comments, track changes, and more.
- Drag-and-drop, upload, or copy-paste images. You can use the menu that pops up around an image to align, resize, and caption it.
- Click (or hover) on red-underlined words for spelling suggestions and blue-underlined words for grammar suggestions.
Of course, snippets don’t have to be just text. Using our template language, the same snippet can produce different output using Liquid syntax and dynamic parameters. This allows you to create powerful, reusable templates.
When you render a snippet through our SDKs or API, we’ll combine the snippet’s source code with the parameters you’ve passed to generate a render. Then, we’ll send the resulting HTML to you in Unicode-escaped format.
The first time you render a snippet, it may take a bit longer, because we have a lot to do. After that, however, we’ll return a cached version of the snippet much more quickly.
Whenever you change your snippet’s content, the cache will be invalidated, and a new render will be generated upon the next request.
Once your content stabilizes, you can replace a snippet with its source code to improve your page’s performance (no matter how fast we make our service, loading static content locally will always be faster).
To remove a snippet:
- Copy the snippet’s resulting HTML from your application’s source code.
- Find occurrences of the snippet in your application.
- Replace the occurrences of the snippet with the snippet’s source code.
Deleting a snippet
At this time, you cannot delete a snippet through the application. Instead, please contact us for assistance.