GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Eiffel-Workshop/shablon: A small and friendly string formatter for Eiffel

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
docs
docs
 
 
examples/demo
examples/demo
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
justfile
justfile
 
 
shablon.ecf
shablon.ecf
 
 

Repository files navigation

shablon

ISE Eiffel Gobo Eiffel CI

A small and friendly string formatter for Eiffel.

Grammar · API · Example

Highlights

  • Unicode-friendly: accepts 8-bit and 32-bit strings and returns STRING_32.
  • Familiar {} placeholders and a practical subset of Python's format specification mini-language.
  • Decimal precision, digit grouping, width, alignment, custom fill, zero padding, explicit signs, scientific notation, and much more.

Usage

Just call {SHABLON}.format:

local
    message: STRING_32
do
    message := {SHABLON}.format ("Hello, {}!", "Alice")
        -- Hello, Alice!

    message := {SHABLON}.format ("{0} invited {1}; thanks, {0}!", "Alice", "Bob")
        -- Alice invited Bob; thanks, Alice!

    message := {SHABLON}.format ("Total: {:,.2f}", 12345.5)
        -- Total: 12,345.50
end

Inherit SHABLON to call format directly. Each call returns a fresh STRING_32. See SHABLON for call styles and explicit tuples, and the grammar for formatting options and error rules.

Installation

Clone the library into your application:

git clone https://github.com/Eiffel-Workshop/shablon.git vendor/shablon

Reference it from your application's ECF:

<library name="shablon" location="vendor/shablon/shablon.ecf" readonly="true"/>

Set GOBO to your Gobo installation and GOBO_EIFFEL to ge or ise. The library is void-safe and uses standard Eiffel classes.

For development, run just test or just example; see the justfile.

Licensed under Apache License 2.0. Copyright 2026 samedit66.

About

A small and friendly string formatter for Eiffel

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.