Custom template problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom template problem

ozeebee
Hi there,

I have some troubles using a custom template with version 1.5.0-preview.8

I have created a /templates/html5/document.html.erb inside my directory based on the one from the asciidoctor-backends project.
When I try to convert my document with this command line: > asciidoctor -T templates/ test.adoc
I get this output:

    undefined method `embed_pygments_stylesheet' for Asciidoctor::Stylesheets:Class

Yet, if I look in the lib/asciidoctor/stylesheets.rb file, this method exists ...

Running this with --trace points me to this line in the template:

<%= Asciidoctor::Stylesheets.embed_pygments_stylesheet(attr 'pygments-style') %>

Any clue ?
thanks in advance,
cheers
Ozb
Reply | Threaded
Open this post in threaded view
|

Re: Custom template problem

mojavelinux
Administrator
Did you ever sort this one out?

-Dan

On Mon, Jul 21, 2014 at 9:39 AM, ozeebee [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi there,

I have some troubles using a custom template with version 1.5.0-preview.8

I have created a /templates/html5/document.html.erb inside my directory based on the one from the asciidoctor-backends project.
When I try to convert my document with this command line: > asciidoctor -T templates/ test.adoc
I get this output:

    undefined method `embed_pygments_stylesheet' for Asciidoctor::Stylesheets:Class

Yet, if I look in the lib/asciidoctor/stylesheets.rb file, this method exists ...

Running this with --trace points me to this line in the template:

<%= Asciidoctor::Stylesheets.embed_pygments_stylesheet(attr 'pygments-style') %>

Any clue ?
thanks in advance,
cheers
Ozb


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Custom-template-problem-tp1917.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--