mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-10-29 17:40:29 +00:00
Added support for html being a string or filename. Added tests. Updated dependencies. Updated docs.
This commit is contained in:
8
test/fixtures/assets/imported.css
vendored
8
test/fixtures/assets/imported.css
vendored
@@ -1,8 +0,0 @@
|
||||
body {
|
||||
border: solid 4px green;
|
||||
}
|
||||
#import {
|
||||
background-image: url('./person.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
BIN
test/fixtures/assets/person.png
vendored
BIN
test/fixtures/assets/person.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 5.7 KiB |
1
test/fixtures/basic.css
vendored
Normal file
1
test/fixtures/basic.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div { color: blue; }
|
||||
1
test/fixtures/basic.less
vendored
Normal file
1
test/fixtures/basic.less
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div { color: blue; }
|
||||
1
test/fixtures/css-url.html
vendored
Normal file
1
test/fixtures/css-url.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<style>div { background-image: url("file.txt"); }</style>
|
||||
1
test/fixtures/file.txt
vendored
Normal file
1
test/fixtures/file.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Test.
|
||||
1
test/fixtures/img.html
vendored
Normal file
1
test/fixtures/img.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<img src="file.txt"/>
|
||||
2
test/fixtures/import.less
vendored
Normal file
2
test/fixtures/import.less
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
@import 'basic.less';
|
||||
@import (inline) 'basic.css';
|
||||
25
test/fixtures/index.html
vendored
25
test/fixtures/index.html
vendored
@@ -1,25 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet/less" href="main.less"/>
|
||||
<style>
|
||||
div {
|
||||
padding-left: 2em;
|
||||
}
|
||||
#style {
|
||||
background-image: url('./assets/person.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="link">Link</div>
|
||||
<div id="import">Import</div>
|
||||
<div id="style">Style</div>
|
||||
<div id="attribute" style="background-image: url('./assets/person.png'); background-size: contain; background-repeat: no-repeat;">Attribute</div>
|
||||
<img height="32px" width="32px" src="./assets/person.png"/>Image
|
||||
{{> partial}}
|
||||
{{helper}}
|
||||
</body>
|
||||
</html>
|
||||
7
test/fixtures/main.less
vendored
7
test/fixtures/main.less
vendored
@@ -1,7 +0,0 @@
|
||||
@import (less) './assets/imported.css';
|
||||
|
||||
#link {
|
||||
background-image: url('assets/person.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
Reference in New Issue
Block a user