mirror of https://github.com/sveltejs/svelte
37 lines
569 B
37 lines
569 B
"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; |