Use Cases



View Templating

Zesty's view files and templating language - Parsley

What are Views?


Views are template files in Zesty.io that can render HTML or various other MIME types. Views render dynamically using the templating language, Parsley.

All Views have a ZUID that starts with 11, for example 11-123a2f0-qw2n4.

Views can carry one of three associations:

  1. Content Model View
    A Content Model can optionally be created with a view. When this happens, Content Items of that Model get unique URLs. When a content model's item gets accessed by its URL, the Zesty.io Site Engine will render the view associated with it. When a view is associated with a content model, it has unique behaviors in the Zesty.io Manager Code Editor. This views invoke the {{this}} Parsley call which gives direct access to the specific Content Item being rendered.
  2. Endpoint View
    Views created to load a specific MIME type. Through Parsley they can have access to any data in an Instance, they can also have access to foreign instance data through EcoCode.
  3. Snippet View
    Code that is intended to be reused, like HTML components or common each loops, can stored in a snippet and be {{include}}'d in both Endpoint Views of Content Model Views.
  4. Wildcard View View
    A view that resolves against a dynamic url structure which may contain any URL path part. For example a wild card view created called: /store/*/*/ will resolve /store/anything/here/. These views have access to Parsley, but do not have access to the {{this}} call.

Zesty.io's Templating Language, Parsley


Parsley is templating language used in a view to access content managed in Zesty.io.

Similar to other templating languages, Parsley uses double curly brackets {{ }} to open and close template expressions. Inside these brackets a developer can use Parsley to access content, write conditionals, or reference look ups. Parsley templating expressions are written alongside standard HTML. See the below example for a reference.

One can quickly explore what Parsley has to offer at the Parsley REPL.

Start Here

We will listen to your needs and walk you through how Zesty can help your team.

Connect with Content Experts

Book a free 15-minute consultation with a content expert. Discuss your application, pain points and requirements. Understand how Zesty's lower total cost of ownership, features, functionality can elevate your business by creating extraordinary digital experiences.

Trusted By

zesty customer logo Sonyzesty customer logo Rocket Leaguezesty customer logo Singlifezesty customer logo Acornszesty customer logo Phoenix Sunszesty customer logo Wattpadzesty customer logo Corner Shopzesty customer logo Bjs


zesty customer logo zesty customer logo zesty customer logo zesty customer logo

Enter your details to connect with a Content Expert

First Name

Last Name


Phone (optional)


Please tell us about your project (optional)