All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.grails.cli.profile.commands.templates.SimpleTemplate.groovy Maven / Gradle / Ivy

package org.grails.cli.profile.commands.templates

import groovy.transform.CompileStatic
import groovy.transform.Immutable

@CompileStatic
@Immutable
class SimpleTemplate {
    String template
    
    public String render(Map variables) {
        String result = template?:''
        variables.each { k, v ->
            result = result.replace("@${k}@".toString(), v?:'')
        }
        result
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy