Hacker News new | ask | show | jobs
by adamzochowski 1352 days ago
Does render() also generate plaintext?
1 comments

The example on Github doesn't seem to:

    // js-side
    import { render } = from 'jsx-mail';
    const template = await render('Welcome', { name: 'John' });
    
    console.log(template) // <html>...<h1>John Welcome to jsx-mail</h1>...</html>
    
(https://github.com/Theryston/jsx-mail)