rapidoc-core
Advanced tools
Comparing version 0.0.1-alfa.6 to 0.0.1-alfa.7
{ | ||
"name": "rapidoc-core", | ||
"version": "0.0.1-alfa.6", | ||
"version": "0.0.1-alfa.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/rapidoc-core.js", |
import _ from 'lodash'; | ||
import html from '@popeindustries/lit-html-server'; | ||
import { html, renderToString } from '@popeindustries/lit-html-server'; | ||
// import html from '@popeindustries/lit-html-server'; | ||
import numRef from './ref.json'; | ||
@@ -14,7 +15,12 @@ | ||
export function card(data) { | ||
function cardTemplate(data) { | ||
return html` | ||
<h1> ${data.title}</h1> | ||
<p> ${data.text}</p> | ||
<h3> ${data.text}</h3> | ||
`; | ||
} | ||
export async function cardHtml(data) { | ||
const resultHtml = await renderToString(cardTemplate(data)); | ||
return resultHtml; | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
889892
16618