LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  • Look mum, no hands!
  • Library template
  1. Widgets
  2. Customisations

Template

LiSA Library comes with a very basic yet flexible and customizable template, to render the library.

Look mum, no hands!

LiSA Library uses Handlebars.js for client-side rending. When providing your own template, please refer to the Handlebars Language Guide for information on the Handlebars expression syntax.

Library template

The following code block shows the default library template. Feel free to customize it to your individual needs or even Bring your own template .

{{#each sections}}
  <div class="lisa__section{{#with variations}}{{#each .}} lisa__section--{{.}}{{/each}}{{/with}}">
    {{#title}}
      <div class="lisa__section-title">{{.}}</div>
    {{/title}}
    {{#with items}}
      <ul class="lisa__section-listing">
        {{#each .}}
          <li class="lisa__show{{#with variations}}{{#each .}} lisa__show--{{.}}{{/each}}{{/with}}" data-lisa-show-id="{{id}}">
            {{#asset}}
              <div class="lisa__show-assets">
                <div class="lisa__show-asset {{#orientation}}lisa__show-asset--{{.}}{{/orientation}}">
                  <img class="lisa__show-asset--lazy" data-src="{{url}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="{{../../title}}" />
                  <noscript>
                    <img src="{{url}}" alt="{{../../title}}" />
                  </noscript>
                </div>
              </div>
            {{/asset}}
            <div class="lisa__show-data">
              {{#tag}}
                <span class="lisa__show-tag">
                  <span>{{.}}</span>
                </span>
              {{/tag}}
              {{#with hosts}}
                <div class="lisa__show-avatars">
                  {{#each .}}
                    <div class="lisa__show-avatar">
                      <img src="{{avatar}}" alt="{{displayName}}" />
                    </div>
                  {{/each}}
                </div>
              {{/with}}
              {{#title}}
                <strong class="lisa__show-title">{{.}}</strong>
              {{/title}}
              {{#description}}
                <div class="lisa__show-description">{{{.}}}</div>
              {{/description}}
              {{#date}}
                <span class="lisa__show-date">{{.}}</span>
              {{/date}}
            </div>
            <a class="lisa__show-cta-play">
              <svg>
                <circle cx="41" cy="41" r="40"></circle>
                <polygon points="32,25 32,58 60,42"></polygon>
              </svg>
            </a>
          </li>
        {{/each}}
      </ul>
    {{/with}}
  </div>
{{/each}}
PreviousCustomisationsNextBring your own template

Last updated 1 year ago