Skip to content

Mustache implementation in simple procedural Pascal

License

Notifications You must be signed in to change notification settings

mtournay/mustapas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MustaPAS

Mustache implementation in simple procedural Pascal

Design Goal

  • Simple procedural interface in single unit
  • Ease of maintenance and extension
  • Fast enough, but not need to be the fastest

Interface

There's only a single function:

procedure Render(const Template: TStream; const Context: TJSONObject; Result: TStream);

The use of TStream allows input from and output to any TStream descendant, be it direct string, files, sockets, whatever you can imagine.

Current Compliance Level

  • interpolation (✅)
  • comments (❌)
  • delimiters (❌)
  • inverted (❌)
  • partials (❌)
  • sections (❌)

About this fork

I made this fork in order to remove dependency to iostream and directly read from / write to streams (original version had issues when used inside a dll)

About

Mustache implementation in simple procedural Pascal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 100.0%