Skip to content

middleman compatibility with 4.6 (tilt ~> 2.2)#99

Open
raccy wants to merge 2 commits intomiddleman:mainfrom
raccy:main
Open

middleman compatibility with 4.6 (tilt ~> 2.2)#99
raccy wants to merge 2 commits intomiddleman:mainfrom
raccy:main

Conversation

@raccy
Copy link

@raccy raccy commented Jul 17, 2025

In middleman 4.6, tilt is 2.2 or higher, but on tilt 2.2, there was a problem where render returned nil.

Upon investigation, it was found that starting from tilt 2.2, the parent class of AsciidoctorTemplate has been changed to StaticTemplate. In StaticTemplate, the evaluate method is not called during rendering; instead, rendering is completed during the prepare method, and only the @output is output.

To accommodate this code change, rendering is now completed solely during prepare, and the dependency version of middleman-core has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant