Closed grantCHG closed 7 years ago
import _ from 'lodash'; _.template('<%\_.forOwn...%>')({ 'user': 'mustache' })
Yep. Inspecting strings isn't such a doable thing. You can pass an imports option to _.template.
_.template
_.template('<%_.forOwn...%>', { 'imports': { 'forOwn': _.forOwn } })({ 'user': 'mustache' })