1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Rename interface contentRewriter to contentTransformer

Is is a much better name.
This commit is contained in:
bep
2015-03-19 01:55:49 +01:00
parent efb564775a
commit 66cf3bdc77
5 changed files with 26 additions and 26 deletions

View File

@@ -176,11 +176,11 @@ func (l *contentlexer) replace() {
}
}
func doReplace(rw contentRewriter, matchers []absURLMatcher) {
func doReplace(ct contentTransformer, matchers []absURLMatcher) {
lexer := &contentlexer{
content: rw.Content(),
w: rw,
content: ct.Content(),
w: ct,
prefixLookup: &prefixes{pr: mainPrefixRunes},
matchers: matchers}
@@ -226,10 +226,10 @@ func newAbsURLReplacer(baseURL string) *absURLReplacer {
}
func (au *absURLReplacer) replaceInHTML(rw contentRewriter) {
doReplace(rw, au.htmlMatchers)
func (au *absURLReplacer) replaceInHTML(ct contentTransformer) {
doReplace(ct, au.htmlMatchers)
}
func (au *absURLReplacer) replaceInXML(rw contentRewriter) {
doReplace(rw, au.xmlMatchers)
func (au *absURLReplacer) replaceInXML(ct contentTransformer) {
doReplace(ct, au.xmlMatchers)
}