FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Spintax

v1.5.4 Public

This module is a helper class to process Spintax strings.

{Hello|Howdy|Hola} to you, {Mr.|Mrs.|Ms.} {Smith|Williams|Davis}

Usage

var spintax = getModel('[email protected]');
var strData = "{Hello|Howdy|Hola} to you, {Mr.|Mrs.|Ms.} {Smith|Williams|Davis}!";

var spinned = spintax.spin(strData);

This code will output a random spun string generated:

Hola to you, Ms. Williams!

Dependencies (0)


Dev Dependencies (0)


 

$ box install spintax

No collaborators yet.
     
  • May 29 2017 10:39 AM
  • May 30 2017 06:50 PM
  • 862
  • 0
  • 0