public PebbleEngine createPebbleEngine ( ) { PebbleEngine . Builder builder = new PebbleEngine . Builder ( ) ; builder . strictVariables ( strictVariables ) ; if ( defaultLocale != null ) { builder . defaultLocale ( defaultLocale ) ; } if ( templateLoaders == null ) { if ( templateLoaderPaths != null && templateLoaderPaths . length > 0 ) { List < Loader < ? > > templateLoaderList = new ArrayList <> ( ) ; for ( String path : templateLoaderPaths ) { templateLoaderList . add ( getTemplateLoaderForPath ( path ) ) ; } setTemplateLoader ( templateLoaderList ) ; } } Loader < ? > templateLoader = getAggregateTemplateLoader ( templateLoaders ) ; builder . loader ( templateLoader ) ; return builder . build ( ) ; }
Creates a PebbleEngine instance .