THREEPARAMS
DLL

Three Parameters and No Exceptions

A native library that gives DataFlex five things it never really needed — Markdown to HTML, Handlebars templating, PDF page counting, case-insensitive replace, and Unicode transliteration (Unidecode). Each is fronted by a small, idiomatic DataFlex wrapper that handles buffers, UTF-8, and errors for you. Drop in the DLL, Use the package, call the function.

WHAT IT DOES

01 ⬡

Markdown → HTML

Turn plain Markdown into clean HTML — a bare fragment, or a complete styled document ready for a cWebView, an email, or the disk. Tables, emphasis, lists, and a custom blank-line spacer extension all just work.

02 ◈

Handlebars Templates

Render a Handlebars template against a JSON data context — loops, conditionals, nested properties, and HTML escaping included. Keep your templates as plain text so business users can edit wording without touching DataFlex code.

03 ◇

PDF Page Count

Ask any PDF how many pages it has with a single call. Clear negative error codes tell you when a file is missing or isn't a valid PDF — no shelling out to external tools, no temporary files.

04 ⬢

Case-Insensitive Replace

The Replace and Replaces you wish DataFlex shipped with — same argument order, but matching ignores letter case. Replace the first match or every match, with the casing of your replacement preserved exactly.

05 ◎

Unidecode

ASCII-transliterate Unicode text in one call — names, paths, and search keys become readable ASCII approximations (Café München → Cafe Munchen, 北亰 → Bei Jing). Pure ASCII passes through unchanged.

06 ◉

Idiomatic Wrappers

Every function is fronted by a small .pkg that handles buffer sizing, UTF-8 conversion, and null terminators — resizing and retrying automatically. You call simple DataFlex functions and never manage memory directly.

07 ⬡

Chain Them Together

The real power is in combining them — merge live JSON data into a Markdown template with Handlebars, then render the result to a finished, styled HTML document. Data-driven invoices and reports in three calls.