Skip to content

replace context: mustache.Context object with data: JsonNode object #102

@pietroppeter

Description

@pietroppeter

currently NbDoc and NbBlock have both a context field of type Context taken from mustache to collect unstructured data. This is further used by the html render backend to render stuff and one thing I do not like is that we modify the context both of doc and block when we render with the backend. Also none of the particular stuff of Context object is used.

Instead we should have a data object which is a standard JsonNode and when rendering with mustache we should generate appropriate context. This would be a first step in a general refactoring of backends which would in general be the target for the next big version (0.4). It should allows us to have a new html backend based on nimja instead of nim mustache for example.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions