You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this project, it's great, but I have some problems and need help.
I have several hundred markdown snippets, scattered in nested markdown using <%= partial "generated-snippetsapihttp-request" %> . The error of any one of the fragments during construction will cause the final generation of index.html to fail. How can I ignore the failed partial to ensure that index.html is successfully generated.
helpers do
require './lib/toc_data.rb'
def partial(template, options = {}, &block)
begin
super(template, options, &block)
rescue
"<aside class='warning'>文件引入失败: #{$!}</aside>"
end
end
end
Thanks for this project, it's great, but I have some problems and need help.
I have several hundred markdown snippets, scattered in nested markdown using <%= partial "generated-snippetsapihttp-request" %> . The error of any one of the fragments during construction will cause the final generation of index.html to fail. How can I ignore the failed partial to ensure that index.html is successfully generated.
Example:
index.html.md.erb
and
includes/master.md.erb
if
<%= partial "includes/snippets2" %>
build error:Will appear:
error build/index.html
;I expect:
create build/index.html
.The text was updated successfully, but these errors were encountered: