jawr-bundle-processor/src/main/java/net/jawr/web/bundle/processor/renderer/BasicBundleRenderer.java
/**
     * Creates a link to a bundle in the page. 
     * @param bundleId the bundle id
     * @param contextPath the context path
     * @return the link to a bundle in the page
     */
Creates a link to a bundle in the page.
@param bundleId the bundle id
@param contextPath the context path
@return the link to a bundle in the page
Creates a link to a bundle in the page . @param bundleId the bundle id @param contextPath the context path @return the link to a bundle in the page
protected String createBundleLink(String bundleId, String contextPath) {
    	JawrConfig config = bundler.getConfig();
		if( config.isDebugModeOn() && 
    		config.getGeneratorRegistry().isPathGenerated(bundleId)) {
    		bundleId = PathNormalizer.createGenerationPath(bundleId, config.getGeneratorRegistry(), null);
    	}
    	String fullPath = PathNormalizer.joinPaths(config.getServletMapping(), bundleId);
    	fullPath = PathNormalizer.joinPaths(contextPath,fullPath);
    	return renderLink(fullPath);
    }
protected String createBundleLink ( String bundleId , String contextPath ) { JawrConfig config = bundler . getConfig ( ) ; if ( config . isDebugModeOn ( ) && config . getGeneratorRegistry ( ) . isPathGenerated ( bundleId ) ) { bundleId = PathNormalizer . createGenerationPath ( bundleId , config . getGeneratorRegistry ( ) , null ) ; } String fullPath = PathNormalizer . joinPaths ( config . getServletMapping ( ) , bundleId ) ; fullPath = PathNormalizer . joinPaths ( contextPath , fullPath ) ; return renderLink ( fullPath ) ; }
Creates a link to a bundle in the page.
Creates a link to a bundle in the page .
// When debug mode is on and the resource is generated the path must include a parameter