Unable to specify HTML template
In doorstop->core->template.py->get_template(), it doesn't seem to handle the condition where the user specifies the HTML template.
If you run the tool with the argument --template ./template for example, the "./template" arg comes into this function in the template var. This matches the description of get_template()
def get_template(obj, path, ext, template):
"""Return the correct template.
Return correct template according to the published type.
If a template has been specified, use that. Otherwise, use doorstop's
built-in templates.
Create the output folder and template folder.
"""
However, this function doesn't seem to use this input. On line 71 it checks if it is set, but document_template is coming from obj
# Check for custom template and verify that it is available.
if template and not document_template:
raise common.DoorstopError(
"Template flag set, but no 'template' folder was found."
)
In my case, my obj doesn't have a template nor does it's children documents.
Could someone on the team provide clarification about how this is supposed to work? I'm happy to update the documentation and/or the code, but I'd prefer to understand how its supposed to work before I start hacking ;]
I ran into the same issue. Did you find out what the issue is, or did you fix it somehow?