本文整理汇总了Java中org.thymeleaf.templateresource.ITemplateResource类的典型用法代码示例。如果您正苦于以下问题:Java ITemplateResource类的具体用法?Java ITemplateResource怎么用?Java ITemplateResource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITemplateResource类属于org.thymeleaf.templateresource包,在下文中一共展示了ITemplateResource类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource( final IEngineConfiguration configuration, final String ownerTemplate,
final String template, final String resourceName, final String characterEncoding,
final Map<String, Object> templateResolutionAttributes )
{
return resolve( null, ownerTemplate, resourceName );
}
开发者ID:purplejs,项目名称:purplejs,代码行数:8,代码来源:TemplateResolverImpl.java
示例2: resolve
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
public ITemplateResource resolve( final ResourcePath base, final String location )
{
final ResourcePath resolved = resolvePath( base, location );
final Resource resource = this.loader.loadOrNull( resolved );
return resource != null ? new TemplateResourceImpl( resource, this ) : null;
}
开发者ID:purplejs,项目名称:purplejs,代码行数:8,代码来源:TemplateResolverImpl.java
示例3: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource(IEngineConfiguration configuration,
String ownerTemplate, String template,
String resourceName,
String characterEncoding,
Map<String, Object> templateResolutionAttributes) {
Locale locale = (Locale) templateResolutionAttributes.get("locale");
String string = resources.contentOf(resourceName, locale).parsedTo(string()).asIs();
return new StringTemplateResource(string);
}
开发者ID:resource4j,项目名称:resource4j,代码行数:11,代码来源:Resource4jTemplateResolver.java
示例4: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource(IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes) {
return new StringTemplateResource(domain.getLoginForm().getContent());
}
开发者ID:gravitee-io,项目名称:graviteeio-access-management,代码行数:5,代码来源:DomainBasedTemplateResolver.java
示例5: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource(IEngineConfiguration configuration, String ownerTemplate,
String template, String resourceName, String characterEncoding,
Map<String, Object> templateResolutionAttributes) {
return new BundleTemplateResource(bundle, resourceName, characterEncoding);
}
开发者ID:AdeptJ,项目名称:adeptj-modules,代码行数:7,代码来源:BundleTemplateResolver.java
示例6: relative
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
public ITemplateResource relative(String relativeLocation) {
Validate.notEmpty(relativeLocation, "Relative Path cannot be null or empty");
final String fullRelativeLocation = computeRelativeLocation(this.path, relativeLocation);
return new BundleTemplateResource(this.bundle, fullRelativeLocation, this.characterEncoding);
}
开发者ID:AdeptJ,项目名称:adeptj-modules,代码行数:7,代码来源:BundleTemplateResource.java
示例7: relative
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
public ITemplateResource relative( final String relativeLocation )
{
return this.resolver.resolve( this.path, relativeLocation );
}
开发者ID:purplejs,项目名称:purplejs,代码行数:6,代码来源:TemplateResourceImpl.java
示例8: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource(IEngineConfiguration theConfiguration, String theOwnerTemplate, String theTemplate, Map<String, Object> theTemplateResolutionAttributes) {
String template = myNameToNarrativeTemplate.get(theTemplate);
return new StringTemplateResource(template);
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:6,代码来源:BaseThymeleafNarrativeGenerator.java
示例9: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
@Override
protected ITemplateResource computeTemplateResource(IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes) {
String str = Utils.readFileToString(vertx, template);
return new StringTemplateResource(str);
}
开发者ID:vert-x3,项目名称:vertx-web,代码行数:6,代码来源:ThymeleafTemplateEngineImpl.java
示例10: computeTemplateResource
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
protected ITemplateResource computeTemplateResource(IEngineConfiguration theConfiguration,
String theOwnerTemplate, String theTemplate, Map<String, Object> theTemplateResolutionAttributes) {
String template = nameToNarrativeTemplate.get(theTemplate);
return new StringTemplateResource(template);
}
开发者ID:elexis,项目名称:elexis-3-core,代码行数:6,代码来源:CustomNarrativeGenerator.java
示例11: resolve
import org.thymeleaf.templateresource.ITemplateResource; //导入依赖的package包/类
ITemplateResource resolve( ResourcePath base, String location );
开发者ID:purplejs,项目名称:purplejs,代码行数:2,代码来源:TemplateResourceResolver.java
注:本文中的org.thymeleaf.templateresource.ITemplateResource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论