Skip to content

Commit

Permalink
Fix URLs lacking protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Sep 23, 2019
1 parent c337404 commit a3ee586
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ A more complex example, inserting a row into a `<table>` with different types of
TemplateTemplate('#row-template', {
'th': 'CashCash',
'th + td': anchor,
'.url': ['github.com/jgarber623/CashCash', {
'.url': ['https://github.com/jgarber623/CashCash', {
'style': 'font-style: italic;'
}],
'td:last-child': TemplateTemplate('#anchor-template', {
'a': ['JavaScript', {
'href': 'github.com/search?q=language%3AJavaScript',
'href': 'https://github.com/search?q=language%3AJavaScript',
'target': '_blank'
}]
})
Expand All @@ -152,7 +152,7 @@ TemplateTemplate('#row-template', {
// first index in the array as the `textContent` for the node. The
// second index is a hash of key/value pairs which are added to the
// node as HTML attributes.
'.url': ['github.com/jgarber623/CashCash', {
'.url': ['https://github.com/jgarber623/CashCash', {
'style': 'font-weight: bold;'
}],

Expand Down
4 changes: 2 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>TemplateTemplate: Example</h1>
TemplateTemplate(document.querySelector('#row-template'), {
'.name': 'TemplateTemplate',
'.author': 'Jason Garber',
'.url': 'github.com/jgarber623/TemplateTemplate',
'.url': 'https://github.com/jgarber623/TemplateTemplate',
'.languages': 'JavaScript'
})
);
Expand All @@ -113,7 +113,7 @@ <h1>TemplateTemplate: Example</h1>
TemplateTemplate('#row-template', {
'th': 'CashCash',
'th + td': anchor,
'.url': ['github.com/jgarber623/CashCash', {
'.url': ['https://github.com/jgarber623/CashCash', {
'style': 'font-style: italic;'
}],
'td:last-child': TemplateTemplate('#anchor-template', {
Expand Down

0 comments on commit a3ee586

Please sign in to comment.