Skip to content

.tag.html extension for server-side rendered tags #57

@tas12

Description

@tas12

Thank you for sharing this style guide

Is there a way to use the .tag.html extension when using the riot.render() method in the server?

Example from http://riotjs.com/guide/#server-side-rendering:

var riot = require('riot')
var timer = require('timer.tag')

var html = riot.render(timer, { start: 42 })

console.log(html) // <timer><p>Seconds Elapsed: 42</p></timer>

I would like to 'require' a riot tag with .tag.html ext but this causes an error when starting the server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions