233장. mustache Component

Camel 버전 2.12로 사용 가능

mustache: 구성 요소를 사용하면 Mustache 템플릿을 사용하여 메시지를 처리할 수 있습니다. Templating을 사용하여 요청에 대한 응답을 생성할 때 이상적입니다.

Maven 사용자는 이 구성 요소를 위해 다음 종속성을 pom.xml 에 추가해야 합니다.

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-mustache</artifactId>
<version>x.x.x</version> <!-- use the same version as your Camel core version -->
</dependency>

233.1. URI 형식

mustache:templateName[?options]

여기서 templateName 은 호출할 템플릿의 classpath-local URI이거나 원격 템플릿의 전체 URL(예: file://folder/myfile.mustache)입니다.

다음 형식 ?option=value&option=value&…​로 URI에 쿼리 옵션을 추가할 수 있습니다.