@ Override public void render ( final String file , final Map < String , Object > context , final Handler < AsyncResult < Buffer > > handler ) { // verify if the file is still fresh in the cache read ( prefix + file , new AsyncResultHandler < String > ( ) { @ Override public void handle ( AsyncResult < String > asyncResult ) { if ( asyncResult . failed ( ) ) { handler . handle ( new YokeAsyncResult < Buffer > ( asyncResult . cause ( ) ) ) ; } else { try { handler . handle ( new YokeAsyncResult <> ( parseStringValue ( asyncResult . result ( ) , context , new HashSet < String > ( ) ) ) ) ; } catch ( IllegalArgumentException iae ) { handler . handle ( new YokeAsyncResult < Buffer > ( iae ) ) ; } } } } ) ; }
An interpreter for strings with named placeholders .