Faker.js filter for liquidless templates
Install the dependency from npm:
npm i liquidless-faker
Import the fake
filter
import { fake } from 'liquidless-faker'
Example: Rendering a string
renderString('{{ lorem.lines | fake: 1 }}', {}, {
filters: {
fake
}
})
Outputs:
Saepe nesciunt officiis.