/**
 * Trivial implementation for resource mapping.
 * It adds and removes an extension to convert from url path to resource path.
 *
 *
 */ export default class ResourceMappingImpl { constructor ( extension ? ) { if ( extension ) { this . extension = extension ; } } private extension : string = ".html" ; public resolve ( path ) { return path . substring ( 0 , path . length - this . extension . length ) ; } public map ( path ) { return path + this . extension ; } }