mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
569 B
37 lines
569 B
7 years ago
|
"use strict";
|
||
|
|
||
|
var SvelteComponent = {};;
|
||
|
|
||
|
SvelteComponent.data = function() {
|
||
|
return {};
|
||
|
};
|
||
|
|
||
|
SvelteComponent.render = function(state, options) {
|
||
|
state = state || {};
|
||
|
|
||
|
return ``.trim();
|
||
|
};
|
||
|
|
||
|
SvelteComponent.renderCss = function() {
|
||
|
var components = [];
|
||
|
|
||
|
return {
|
||
|
css: components.map(x => x.css).join('\n'),
|
||
|
map: null,
|
||
|
components
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var escaped = {
|
||
|
'"': '"',
|
||
|
"'": ''',
|
||
|
'&': '&',
|
||
|
'<': '<',
|
||
|
'>': '>'
|
||
|
};
|
||
|
|
||
|
function __escape(html) {
|
||
|
return String(html).replace(/["'&<>]/g, match => escaped[match]);
|
||
|
}
|
||
|
|
||
|
module.exports = SvelteComponent;
|