<!-- Generated by vite-plugin-geo; source: index.html -->

[Skip to content](#main-content)

[![](/sline-logo.png)Sline](/)

Sline

[Sline overview](/)[Theme Sections](/section/)[AST Explorer](/sline-ast-explorer/)

Guides

[Sline language guide](/sline-template/)[Syntax comparison](/sline-vs-handlebars-vs-liquid/)[Migration cookbook](/liquid-handlebars-sline/)[Dawn vs Bottle](/Shopify-Dawn-vs-Shopline-Bottle/)[OS 3.0 migration](/shopline-transformation/)[Theme CLI](/sline-theme-cli/)

MCP

[SHOPLINE Dev MCP](/mcp/)[Storefront MCP](/storefront-mcp/)[Shopline MCP](/shopline-mcp/)

Tools

[SkuSync](/skusync/)[SHOPLINE to Shopify](/convert-shopline-csv-to-shopify-format/)[Shopify to SHOPLINE](/convert-shopify-csv-to-shopline-xlsx/)[AI Readiness Checker](/ai-checker/)[SkuSync Docs](/docs/)[Shopline Checker](/shopline-checker/)[Shopline Helper](/shopline-helper/)[ImgSEO](/imgseo/)[ImgSEO Guide](/imgseo-doc/)

Language: English

[English](/)[简体中文](/zh-cn/)[繁體中文](/zh-tw/)[日本語](/ja/)

Menu

## Sline

[Sline overview](/)[Theme Sections](/section/)[AST Explorer](/sline-ast-explorer/)

## Guides

[Sline language guide](/sline-template/)[Syntax comparison](/sline-vs-handlebars-vs-liquid/)[Migration cookbook](/liquid-handlebars-sline/)[Dawn vs Bottle](/Shopify-Dawn-vs-Shopline-Bottle/)[OS 3.0 migration](/shopline-transformation/)[Theme CLI](/sline-theme-cli/)

## MCP

[SHOPLINE Dev MCP](/mcp/)[Storefront MCP](/storefront-mcp/)[Shopline MCP](/shopline-mcp/)

## Tools

[SkuSync](/skusync/)[SHOPLINE to Shopify](/convert-shopline-csv-to-shopify-format/)[Shopify to SHOPLINE](/convert-shopify-csv-to-shopline-xlsx/)[AI Readiness Checker](/ai-checker/)[SkuSync Docs](/docs/)[Shopline Checker](/shopline-checker/)[Shopline Helper](/shopline-helper/)[ImgSEO](/imgseo/)[ImgSEO Guide](/imgseo-doc/)

# Sline Template Engine

Golang-Powered Compiled Template Engine for Online Store 3.0

[SHOPLINE CLI: Developer Guide →](/sline-theme-cli/)[SHOPLINE Online Store 3.0 theme sections](/section/)

Sline is the template engine used by SHOPLINE Online Store 3.0 and the Bottle theme. Learn how objects, tags, filters, scoped components, and theme sections work together, then follow the guides to develop and test your own storefront templates.

## Key Features

Discover the powerful capabilities that make Sline the next-generation compiled engine powering SHOPLINE Online Store 3.0 and the Bottle theme

⚡

### Compiled Go Engine

Sline uses a compiled template architecture. Read the official documentation for the platform rendering model and test performance against the actual templates and data used by your store.

🎯

### Reusable Theme Components

Bottle organizes storefront features into reusable components. Explore product details, variant selection, pricing, and cart interactions in the reference theme before building your own.

🔧

### Theme Event System

Built-in event handling for e-commerce interactions: product browsing, variant selection, cart updates, and form submissions. Create rich, interactive shopping experiences with automatic state management — no manual wiring required.

🏗️

### Sections and Nested Blocks

Combine sections and blocks to build configurable storefront layouts. Check the platform documentation for supported nesting and theme editor constraints.

🚀

### True Component Architecture

Sline introduces genuine component encapsulation with explicit props passing. Each component owns its own scoped context — data must be explicitly declared and passed in. This eliminates context pollution, making themes more maintainable, testable, and robust at scale.

📈

### Pipeline Operators & Built-in Tags

Chain data transformations with Sline's expressive pipeline operators for filtering, formatting, and appending values in a single line. Plus dedicated built-in tags for image rendering, placeholder SVGs, and content blocks that handle common e-commerce rendering needs without custom code, keeping templates clean and declarative.

## Syntax Comparison

See how Sline's modern, component-oriented syntax compares to Liquid — SHOPLINE's compiled engine for Online Store 3.0

### Liquid Syntax

```

{% case user.account.type %}
    {% when 'premium' %}
    Premium user
    {% when 'basic' %}
    Basic user
{% endcase %}

{% for product in products %}
    {{ product.title }}
{% endfor %}

{% unless items.size > 0 %}content{% endunless %}

```

### Sline Syntax

```

{{#switch user.account.type}}
    {{#case "premium" /}}
    Premium user
    {{#case "basic" /}}
    Basic user
{{/switch}}

{{#for product in products}}
    {{ product.title }}
{{/for}}

{{#if !(items|size() > 0)}}content{{/if}}

```

## Why Choose Sline

Use the developer guides and official references to understand the template model and plan your theme workflow.

### Compiled Go Engine

Pre-compiled at deploy time

### Scoped Components

Explicit data and props

### Reusable Sections

Configurable theme layouts

### Developer Guides

With official references

## Ready to Get Started?

Dive deeper into how Sline powers SHOPLINE Online Store 3.0 themes. Check out our detailed comparison with other template engines, or learn how to build amazing themes with SHOPLINE CLI.

[Learn Sline syntax (简体中文)](/sline-template/)[Explore a Sline AST](/sline-ast-explorer/)[Dawn vs Bottle: Full Comparison](/Shopify-Dawn-vs-Shopline-Bottle/)[Sline vs Handlebars vs Liquid](/sline-vs-handlebars-vs-liquid/)[SHOPLINE CLI: Developer Guide](/sline-theme-cli/)[SHOPLINE Online Store 3.0 theme sections](/section/)

[![](/sline-logo.png)Sline](/)

Developer resources and browser tools for SHOPLINE themes, storefronts, and product data.

## Sline

- [Sline overview](/)
- [Theme Sections](/section/)
- [AST Explorer](/sline-ast-explorer/)

## Guides

- [Sline language guide](/sline-template/)
- [Syntax comparison](/sline-vs-handlebars-vs-liquid/)
- [Migration cookbook](/liquid-handlebars-sline/)
- [Dawn vs Bottle](/Shopify-Dawn-vs-Shopline-Bottle/)
- [OS 3.0 migration](/shopline-transformation/)
- [Theme CLI](/sline-theme-cli/)

## MCP

- [SHOPLINE Dev MCP](/mcp/)
- [Storefront MCP](/storefront-mcp/)
- [Shopline MCP](/shopline-mcp/)

## Tools

- [SkuSync](/skusync/)
- [SHOPLINE to Shopify](/convert-shopline-csv-to-shopify-format/)
- [Shopify to SHOPLINE](/convert-shopify-csv-to-shopline-xlsx/)
- [AI Readiness Checker](/ai-checker/)
- [SkuSync Docs](/docs/)
- [Shopline Checker](/shopline-checker/)
- [Shopline Helper](/shopline-helper/)
- [ImgSEO](/imgseo/)
- [ImgSEO Guide](/imgseo-doc/)

## Community & Support

- [SHOPLINE documentation](https://developer.shopline.com/docs/sline/)
- [GitHub](https://github.com/shoplineos/)
- [Report an issue](https://github.com/shoplineos/Bottle/issues)
- [Contact](mailto:hi@sline.dev)
- [SKU.md](https://sku.md)
- [Disclaimer](/disclaimer/)

## Languages

[English](/)[简体中文](/zh-cn/)[繁體中文](/zh-tw/)[日本語](/ja/)

© 2026 Sline.dev. All rights reserved.
