deku-page-layout
v1.1.0
Published
Render page layout using Deku
Downloads
1
Readme
deku-page-layout
Render page layout using Deku. Useful for apps that already use Deku to avoid another template engine dependency.
USAGE
import PageLayout from 'deku-page-layout';
import {renderString, tree} from 'deku'; // using deku@1
const content = '<div>OK</div>';
const layout = <PageLayout title='Page Title' content={content} />
const html = renderString(tree(layout));
console.log(html);
See tests for other supported options.
LICENSE
MIT