Jahuty Snippets

Turn any content under development into dynamic content with Jahuty Snippets.

Author:Andres OBrien (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:5.2.2
Plugin version:1.0.1
Added to WordPress repository:04-08-2019
Last updated:06-08-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.jahuty.com
Total downloads:347
plugin download
Click to start download

Content changes often and finishes late. Unfortunately, it can’t all live in a CMS. Engineers are often stuck updating and deploying content in an MVC or SPA application.

Instead, use our service and API clients to turn any content under development into dynamic content, freeing your engineers to engineer, not manage content.

Create a snippet

Use our website (https://www.jahuty.com) to create a snippet of HTML.

Logically, a snippet is a group of public, customer-facing content that changes together. Think of a snippet as a custom element you leave your content team to fill.

Physically, a snippet can be any valid HTML string: plain-text, an h1 and a p element, multiple div elements, whatever you’d like.

Snippets must be smaller than 20 pages of text and markup (216 UTF-8 characters to be exact). If you find yourself needing more room, split your snippet in two.

Snippets must be valid HTML. Be sure to escape special HTML characters like <, >, and &; close important tags; and, avoid including untrusted third-party tags.

Remember, snippets are public, customer-facing content. Don’t include any secrets, because there are no protections to prevent other users from viewing your snippets (aside from your public API key, which is easy enough to discover).

Add a container

Add a container with a data-snippet-id attribute.

Add a data-snippet-id=”XYZ” attribute to the snippet’s container element, where XYZ is your snippet’s identifier.

Load the page

We’ll fetch your snippets and insert them into the container.

When the page loads (on DOMContentLoaded to be exact), we’ll find any elements with the snippet-id data attribute, fetch their content using AJAX requests, and innerHTML the content into the container.