-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an example showing how to load a custom template #15
Comments
Hi All, I downloaded a template (erb) from backends and saved it to my workspace, and added the templateDir for <configuration>
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
<templateDirs>
<templateDir>D:\worksapce\online-documentation-guide\src\docs\erb\html5</templateDir>
</templateDirs>
<attributes>
<endpoint-url>http://example.org</endpoint-url>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<project-version>${project.version}</project-version>
</attributes>
</configuration> When I use build command
Could you help me how to fix it? |
I am afraid there's some issue. Good things...I could reproduce it and run it directly with AsciidoctorJ, so 🤞 it's some parameter combination. Or some classpath issue, I need to find why it cannot find the implementation for eRubis. |
@mokdeve btw, you did not explain your use case, but for certain cases is definetly easier to implement an extension. You can drop by https://asciidoctor.zulipchat.com/ and expose it to get some advice if you want. |
Thanks, I want to use Run it directly with
I look forward to your good news. |
@abelsromero Thanks for your solution, I run it now and it works fine. |
As discuessed in http://discuss.asciidoctor.org/Maven-plugin-and-extensions-td3149.html#a3151, an example showing custom template loading should be added to show this feature.
It's important to remark in the example templates are useful when changing the HTML generated by Asciidoctor.
The text was updated successfully, but these errors were encountered: