Structure

The framework structure is a fixed hierarchy that defines the display environment. Screen, View, Layout, Title Bar, Columns, and Mashup each have a specific role. Plugins render their content inside Views. Follow the exact div setup; deviating causes layout and rendering issues.

TRMNL Platform trmnl.com
Custom Stack BYOS, trmnlp, ...

You don't specify Screen, Mashup, or View - the platform provides them automatically. You only specify the Layout and optionally a Title Bar.

You provide the full hierarchy yourself: Screen, View, Layout, and optionally a Mashup container and a Title Bar.

<!-- plugin's view markup -->
<div class="layout">...</div>
<div class="title_bar">...</div>
<!-- /plugin's view markup -->
<div class="screen">
  <div class="view view--full">
    <div class="layout">...</div>
    <div class="title_bar">...</div>
  </div>
</div>

The Exact Structure

The framework uses a fixed div hierarchy. Each level has a specific role. The canonical structure is:

Screen → (Mashup →) View → Layout (+ optional Title Bar)

Component Roles

Each foundation component has a specific role. Use them as intended.

Single View

For a single plugin occupying the full screen:

Layout
TRMNL Logo Plugin Instance
<div class="screen">
  <div class="view view--full">
    <div class="layout">
      <!-- Your content here -->
    </div>
    <div class="title_bar">...</div>
  </div>
</div>