Custom String Plugin for Grails

Page 1

Custom String Plugin for Grails

This plugin adds few custom methods to String class: 1.trunc() to truncate a string to some length. 2.ellipsis() to add “…” after the truncation. 3.clean() to clean the string content. It normalize all special characters and remove non-text inputs.

Installation: Download and extract the zip. Go to the root of the plugin, and run grails maven-install (from release plugin) which would build the plugin artifact for you in you local maven repository if you have one setup. Now just add the following in your BuildConfig.groovy plugins{ ... runtime ":custom-string:0.1" ... }


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Custom String Plugin for Grails by SharmaRotan - Issuu