forked from RandomEtc/ejs-locals
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
make test pass
- Loading branch information
1 parent
54f24ea
commit 04e1e53
Showing
9 changed files
with
288 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use strict'; | ||
|
||
class Block { | ||
constructor() { | ||
this.html = []; | ||
} | ||
|
||
toString() { | ||
return this.html.join('\n'); | ||
} | ||
|
||
append(more) { | ||
this.html.push(more); | ||
} | ||
|
||
prepend(more) { | ||
this.html.unshift(more); | ||
} | ||
|
||
replace(instead) { | ||
this.html = [ instead ]; | ||
} | ||
} | ||
|
||
module.exports = Block; |
Oops, something went wrong.