haml-formatter
v0.1.0
Published
formatter for haml
Downloads
18
Readme
Haml Formatter
Usage
import { FormatHaml } from 'haml-formatter';
const result = FormatHaml(
`
.level
.level-left
%h1.title
%i.fa.fa-map-marker
.level
.level-left
%h1.title
%i.fa.fa-map-marker
`
);
Result
.level
.level-left
%h1.title
%i.fa.fa-map-marker
.level
.level-left
%h1.title
%i.fa.fa-map-marker
Docs
index
Options
interface Options {
tabSize: number;
insertSpaces: boolean;
}
FormatHaml
function FormatHaml(text: string, options: Partial<Options>): string;
Generated with suf-cli
License
Copyright (c) 2019 Leonard Grosoli Licensed under the MIT license.