import { Elena, html } from '@elenajs/core';
/**
*
*
* Credits the framework this project was scaffolded with. The `recipe` value
* is filled in at scaffold time by create-litro.
*
* Deliberately quiet: a credit line belongs at the bottom of the page and
* should be findable, not compete with the content above it. Delete the
* element from your pages if you would rather not carry it.
*
* Elena renders into the light DOM, so the styles are @scope-d to the tag
* rather than isolated by a shadow root, and :scope stands in for :host.
*/
export class LitroFooter extends Elena(HTMLElement) {
static tagName = 'litro-footer';
// Lowercase, because HTML parsers lowercase attribute names — a camelCase
// prop would never bind from markup.
static props = ['recipe'];
/** Recipe this project was scaffolded from, e.g. "starlight". */
recipe = '';
render() {
// A plain string, not a nested template: Elena escapes interpolations, so
// markup passed through here would be shown rather than rendered.
const suffix = this.recipe ? `, ${this.recipe} recipe` : '';
return html`
`;
}
}
LitroFooter.define();
export default LitroFooter;