AF-PlasticUser Guide

Overview

afPlastic is a library for dynamically generating and compiling Fantom code.

Quick Start

model := PlasticClassModel("MyClass", true)
model.addMethod(Str#, "greet", "Str name", """ "Hello \${name}!" """)

myType := PlasticCompiler().compileModel(model)
myType.make->greet("Mum")

// --> Hello Mum!

Release Notes

v1.0.0

  • New: Initial release.
  • Chg: afPlastic code was jail breaked from afIoc and updated for use by afEfan