Skip to content

feat: support exporting a template function #120

@michael-ciniawsky

Description

@michael-ciniawsky

I'm submitting a feature request

Template ({Function})

component.html

<div>${ _.hello }<div>

webpack.config.js

{
  loader: 'html-loader', options: { template: true }
}

component.js

import template from './component.html'

const component = template({ hello: 'Hello World!' })
// <div>Hello World!</div>

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions