Skip to content

Tejtex/utl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UTL - Universal Template Language

Build Status License Version

Overview

UTL (Universal Template Language) is a powerful and flexible templating engine designed to simplify the process of generating dynamic content. It allows developers to create templates that can be easily populated with data, making it ideal for prompt engineering, document generation, and more. It will be ported to the most popular programming languages. Discord community: https://discord.gg/yhRanS6Z8w

Features

  • Simple Syntax: UTL uses a straightforward syntax that is easy to learn and use
  • Data Binding: Easily bind data to templates using placeholders
  • Pipes: Support for pipes to create complex templates
  • Extensible: Easily extendable to support custom functions and filters

Installation

To install UTL, simply include the library in your project. You can download it from the official repository or use a package manager if available.

Usage

Here's a basic example of how to use UTL:

from utl import render

template = "Hello, { name | upper }!"
data = {"name": "world"}
output = render(template, data)
print(output)  # Output: Hello, WORLD!

Syntax

  • Placeholders: Use { placeholder } to denote a variable that will be
  • Pipes: Use the pipe symbol | to apply functions to placeholders, e.g., { name | upper }

About

Universal template language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages