loro

Powerful Template Manager

Create, manage, and render dynamic templates with ease. Build XML, JSON, CSV, and text outputs using powerful templating with custom functions and real-time testing.

How It Works

1

Create Template

Use template syntax with custom functions for data manipulation and formatting.

2

Add Sample Data

Provide JSON data to define your template's expected structure.

3

Test & Preview

Live testing environment with real-time output and debugging.

4

Deploy via API

Access templates through REST API with your API key.

Why Choose loro?

Powerful Templating

Built with rich syntax for loops, conditionals, and data manipulation. Create dynamic content with ease using industry-standard templating.

Multiple Formats

Generate XML, JSON, CSV, plain text, and custom formats. Perfect for reports, configurations, emails, and data transformation workflows.

Custom Functions

Extended with powerful custom functions for math operations, string formatting, date manipulation, and more. Includes byte formatting, duration parsing, and array operations.

Live Testing

Test your templates instantly with sample data. See real-time output and debug template logic before deploying to production.

REST API

Full REST API with authentication support. Integrate template rendering into your applications with simple HTTP calls and flexible data formats.

User Management

Secure user authentication with API keys, usage tracking, and template sharing. Organize templates by category and manage access control.

Template Example

Customer Report Template
<customer-report>
  <header>
    <title>{{ title | string.upcase }}</title>
    <generated>{{ date.now | date.to_string "%Y-%m-%d" }}</generated>
  </header>
  <customers>
    {% for customer in customers %}
    <customer id="{{ customer.id }}">
      <name>{{ customer.name }}</name>
      <email>{{ customer.email }}</email>
      <total>{{ customer.orders | fn_math_sum "amount" | math.format "C" }}</total>
    </customer>
    {% endfor %}
  </customers>
  <summary>
    <total-customers>{{ customers | array.size }}</total-customers>
    <total-revenue>{{ customers | array.map "orders" | array.flatten | fn_math_sum "amount" | math.format "C" }}</total-revenue>
  </summary>
</customer-report>

API Integration

Render Template via API
curl -X POST "https://api.loro.com/api/templates/[ID]/render" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "title": "Monthly Sales Report",
    "customers": [
      {
        "id": "C001",
        "name": "John Doe",
        "email": "john@example.com",
        "orders": [
          {"amount": 150.00},
          {"amount": 75.50}
        ]
      }
    ]
  }'

API Endpoints

POST
/api/templates/{id}/render
Render Template

Render a template with provided data and get the formatted output.

  • inputFormat: json, xml, text
  • outputFormat: json, xml, text
  • Headers: X-API-Key, Content-Type
GET
/api/templates
List Templates

Get all templates available to your account, including shared system templates.

  • Authentication: API Key required
  • Response: JSON array of templates
  • Includes: metadata, sample data, schema

Available Custom Functions

Math Functions

fn_math_sum, fn_math_average - Perform calculations on arrays and collections.

String Functions

fn_thousands_separator, fn_pad_left, fn_pad_right, string.default - Advanced string formatting.

Array Functions

array.where, array.flatten - Filter and manipulate arrays with powerful operations.

Format Functions

fn_format_duration, fn_format_bytes - Human-readable formatting for time and file sizes.

Template Functions

fn_include - Include and render other templates within your templates for modularity.

Utility Functions

fn_random, fn_guid - Generate random data and unique identifiers for testing and production.

Simple, Transparent Pricing

Start free and scale as you grow

Free

$0 /month
  • 100 API calls/month
  • Unlimited templates
  • Basic support
  • Community access
Get Started Free

Starter

$9 /month
  • 3,000 API calls/month
  • Email support
  • All template features
  • $0.008 per overage call
Start 14-day Trial
Most Popular

Growth

$29 /month
  • 15,000 API calls/month
  • Priority support
  • Advanced analytics
  • $0.005 per overage call
Start 14-day Trial

Professional

$79 /month
  • 50,000 API calls/month
  • 24/7 support
  • Custom integrations
  • $0.003 per overage call
Start 14-day Trial

Scale

$199 /month
  • 150,000 API calls/month
  • Dedicated support
  • SLA guarantee
  • $0.002 per overage call
Start 14-day Trial

Enterprise

Custom
  • Unlimited API calls
  • White-glove support
  • SLA guarantees
  • Volume discounts
Contact Sales

All plans include unlimited templates, full API access, and email support

View detailed pricing comparison →

Ready to Start Templating?

Join developers using loro to streamline their template workflows