Hi @Sparsh_Agrawal.
Regarding the templates: The current brian2tools doesn’t use any templates, instead it has code that directly states how all the elements are converted into a paragraph of Markdown code, e.g. here for a NeuronGroup: https://github.com/brian-team/brian2tools/blob/552abd46ba1be15166f8762868753146f84805e0/brian2tools/mdexport/expander.py#L471-L512
The idea would be to use a template instead that gets filled with the relevant information. Since we already use the jinja2 templating engine for Brian’s code generation mechanism, it would make sense to use it here as well.
Regarding pandoc: As a first step, we’d like to make it possible to convert the generated markdown into other formats, such as HTML or PDF. This is quite straightforward with pandoc, so the main work will be integrating it cleanly – make it work with an existing pandoc installation, make it work on Windows, Linux, macOS, etc.
Regarding multi-compartment neurons: unfortunately, our documentation is a bit sparse (in particular, we do not have a tutorial). The best starting point for now would be:
- The main documentation: Multicompartment models — Brian 2 2.6.0 documentation
- The examples here: Examples — Brian 2 2.6.0 documentation
- This (quite complex) example here: Example: Destexhe_et_al_1998 — Brian 2 2.6.0 documentation
Hope that gives you a few pointers!