Formatter for ulka.
This formatter is for
@ulkajs/template-engine
. It will not work forulka-parser
as syntax for ulka block is changed from{%%}
to{{}}
in@ulkajs/template-engine
npm i @ulkajs/format -D
# OR yarn add -D @ulkajs/format
-
Javascript Api
const format = require("format"); format(ulkatext, prettierOptions);
-
Cli
ulka-format src/**.ulka
Note: This package uses prettier to format ulka but it is not a plugin for prettier.