Skip to content

Let's add body field to default template? #19

@bebraw

Description

@bebraw

Now the default template looks like this:

<!DOCTYPE html>
<html${htmlAttrs}>
    <head>
      <meta charset="UTF-8">
      <title>${title}</title>
      ${cssTags}
    </head>
    <body>
      ${jsTags}
    </body>
</html>

For my use case, I want to inject extra content within body (I'm processing some markdown and want to inject the resulting HTML). What if we extended the template like this?

...
<body>
  ${body}
  ${jsTags}
</body>

With this small change, you could pass extra content to body directly through context without having to rewrite the entire template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions