Bootstrap Email Bootstrap Email

ContentCompiler

Utilclass for compiling

Constructor

new ContentCompiler($, logger)

Parameters:
$ ( cheerio )
logger ( Logger )
Source:

Methods

(private) ._generateGrid($, rowSrc, columns, isLG) → {this|void|jQuery}

Parameters:
$ ()
rowSrc ()
columns ()
isLG ()
Source:

(private) .alignmentHelper($, selector, direction)

Handles floats and centered elements

Parameters:
$ ( cheerio )
selector ( string )
direction ( 'left' | 'center' | 'right' )
Source:

(private) .divHelper($)

Replaces all divs with tables

Parameters:
$ ( cheerio )
Source:

(private) .gridHelper($, columns)

Replaces rows and columns to tables and set according separators

Parameters:
$ ( cheerio )

ElementHelper in which the rows and cols should be replaced

columns ( number )

Amount of allowed columns in a row

Source:

(private) .marginHelper($)

Replaces all margin classes to equivalent spacer elements

Parameters:
$ ( cheerio )
Source:

(private) .paddingHelper($)

Handles all padding classes. If padding-element is not a table, wrap a table around

Parameters:
$ ( cheerio )
Source:

(private) .preview($)

Replaces preview tag with hidden div and extend content to 100 characters

Parameters:
$ ( cheerio )
Source:

(private) .tableHelper($)

Adds border, cellspacing and cellpadding attributes to all table elements

Parameters:
$ ( cheerio )
Source: