Socket
Socket
Sign inDemoInstall

mini-van-plate

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

package.json
{
"name": "mini-van-plate",
"version": "0.4.0",
"version": "0.4.1",
"description": "A minimalist template engine for DOM generation and manipulation, working for both client-side and server-side rendering",

@@ -5,0 +5,0 @@ "files": [

@@ -75,3 +75,3 @@ # **Mini-Van**: A Minimalist Template Engine for Client/Server-side Rendering without JSX

Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/github/vanjs-org/vanjs-org.github.io/tree/master/sitegen/node-examples/van-plate-server?file=/van-plate-server.mjs:1,1).
Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/hopeful-perlman-rh7wvk?file=/van-plate-server.mjs:1,1).

@@ -139,3 +139,3 @@ As illustrated in the example, `render` method can be called on the object returned from the [`tag function`](https://vanjs.org/tutorial#api-tags) to generate a `string` that can be used for serving.

Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/github/vanjs-org/vanjs-org.github.io/tree/master/sitegen/node-examples/mini-van-server?file=/mini-van-server.mjs:1,1).
Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/eloquent-nova-s9km5j?file=/mini-van-server.mjs:1,1).

@@ -159,3 +159,3 @@ Similar to `van-plate` mode, we have a helper function `html` defined in `mini-van.js` which is equivalent to:

```typescript
import van from "https://deno.land/x/minivan@0.4.0/src/van-plate.js"
import van from "https://deno.land/x/minivan@0.4.1/src/van-plate.js"

@@ -189,3 +189,3 @@ const {a, body, li, p, ul} = van.tags

Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/github/vanjs-org/vanjs-org.github.io/tree/master/sitegen/deno-examples/van-plate-server?file=/van-plate-server.ts:1,1).
Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/eloquent-bird-95rzff?file=/van-plate-server.ts:1,1).

@@ -202,3 +202,3 @@ ### `mini-van` mode

import { DOMParser } from "https://deno.land/x/deno_dom@v0.1.38/deno-dom-wasm.ts"
import van from "https://deno.land/x/minivan@0.4.0/src/mini-van.js"
import van from "https://deno.land/x/minivan@0.4.1/src/mini-van.js"

@@ -236,3 +236,3 @@ const document = new DOMParser().parseFromString("", "text/html")!

Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/github/vanjs-org/vanjs-org.github.io/tree/master/sitegen/deno-examples/mini-van-server?file=/mini-van-server.ts:1,1).
Preview via [CodeSandbox](https://codesandbox.io/p/sandbox/heuristic-browser-vtxh3c?file=/mini-van-server.ts:1,1).

@@ -244,3 +244,3 @@ ## Client-Side: Getting Started

```javascript
import van from "https://cdn.jsdelivr.net/gh/vanjs-org/mini-van/public/mini-van-0.4.0.min.js"
import van from "https://cdn.jsdelivr.net/gh/vanjs-org/mini-van/public/mini-van-0.4.1.min.js"
```

@@ -251,6 +251,6 @@

```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/vanjs-org/mini-van/public/mini-van-0.4.0.nomodule.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/vanjs-org/mini-van/public/mini-van-0.4.1.nomodule.min.js"></script>
```
Alternative, you can download the files ([`mini-van-0.4.0.min.js`](https://vanjs.org/autodownload?file=mini-van-0.4.0.min.js), [`mini-van-0.4.0.nomodule.min.js`](https://vanjs.org/autodownload?file=mini-van-0.4.0.nomodule.min.js)) and serve them locally.
Alternative, you can download the files ([`mini-van-0.4.1.min.js`](https://vanjs.org/autodownload?file=mini-van-0.4.1.min.js), [`mini-van-0.4.1.nomodule.min.js`](https://vanjs.org/autodownload?file=mini-van-0.4.1.nomodule.min.js)) and serve them locally.

@@ -257,0 +257,0 @@ You can find all relevant **Mini-Van** files in this [Download Table](https://vanjs.org/minivan#download-table).

@@ -20,3 +20,4 @@ export interface State<T> {

export type BindingFunc<ElementType, TextNodeType> =
(dom: ElementType | TextNodeType | undefined) => ValidChildDomValue<ElementType, TextNodeType>
| ((dom?: ElementType | TextNodeType) => ValidChildDomValue<ElementType, TextNodeType>)
| ((dom?: ElementType) => ElementType)

@@ -59,2 +60,7 @@ export type ChildDom<ElementType, TextNodeType> =

// Content sectioning
readonly address: TagFunc<Element, Text, HTMLElement>
readonly article: TagFunc<Element, Text, HTMLElement>
readonly aside: TagFunc<Element, Text, HTMLElement>
readonly footer: TagFunc<Element, Text, HTMLElement>
readonly header: TagFunc<Element, Text, HTMLElement>
readonly h1: TagFunc<Element, Text, HTMLHeadingElement>

@@ -66,7 +72,15 @@ readonly h2: TagFunc<Element, Text, HTMLHeadingElement>

readonly h6: TagFunc<Element, Text, HTMLHeadingElement>
readonly hgroup: TagFunc<Element, Text, HTMLElement>
readonly main: TagFunc<Element, Text, HTMLElement>
readonly nav: TagFunc<Element, Text, HTMLElement>
readonly section: TagFunc<Element, Text, HTMLElement>
// Text content
readonly blockquote: TagFunc<Element, Text, HTMLQuoteElement>
readonly dd: TagFunc<Element, Text, HTMLElement>
readonly div: TagFunc<Element, Text, HTMLDivElement>
readonly dl: TagFunc<Element, Text, HTMLDListElement>
readonly dt: TagFunc<Element, Text, HTMLElement>
readonly figcaption: TagFunc<Element, Text, HTMLElement>
readonly figure: TagFunc<Element, Text, HTMLElement>
readonly hr: TagFunc<Element, Text, HTMLHRElement>

@@ -82,7 +96,30 @@ readonly li: TagFunc<Element, Text, HTMLLIElement>

readonly a: TagFunc<Element, Text, HTMLAnchorElement>
readonly abbr: TagFunc<Element, Text, HTMLElement>
readonly b: TagFunc<Element, Text, HTMLElement>
readonly bdi: TagFunc<Element, Text, HTMLElement>
readonly bdo: TagFunc<Element, Text, HTMLElement>
readonly br: TagFunc<Element, Text, HTMLBRElement>
readonly cite: TagFunc<Element, Text, HTMLElement>
readonly code: TagFunc<Element, Text, HTMLElement>
readonly data: TagFunc<Element, Text, HTMLDataElement>
readonly dfn: TagFunc<Element, Text, HTMLElement>
readonly em: TagFunc<Element, Text, HTMLElement>
readonly i: TagFunc<Element, Text, HTMLElement>
readonly kbd: TagFunc<Element, Text, HTMLElement>
readonly mark: TagFunc<Element, Text, HTMLElement>
readonly q: TagFunc<Element, Text, HTMLQuoteElement>
readonly rp: TagFunc<Element, Text, HTMLElement>
readonly rt: TagFunc<Element, Text, HTMLElement>
readonly ruby: TagFunc<Element, Text, HTMLElement>
readonly s: TagFunc<Element, Text, HTMLElement>
readonly samp: TagFunc<Element, Text, HTMLElement>
readonly small: TagFunc<Element, Text, HTMLElement>
readonly span: TagFunc<Element, Text, HTMLSpanElement>
readonly strong: TagFunc<Element, Text, HTMLElement>
readonly sub: TagFunc<Element, Text, HTMLElement>
readonly sup: TagFunc<Element, Text, HTMLElement>
readonly time: TagFunc<Element, Text, HTMLTimeElement>
readonly u: TagFunc<Element, Text, HTMLElement>
readonly var: TagFunc<Element, Text, HTMLElement>
readonly wbr: TagFunc<Element, Text, HTMLElement>

@@ -106,2 +143,3 @@ // Image and multimedia

readonly canvas: TagFunc<Element, Text, HTMLCanvasElement>
readonly noscript: TagFunc<Element, Text, HTMLElement>
readonly script: TagFunc<Element, Text, HTMLScriptElement>

@@ -144,2 +182,3 @@

readonly dialog: TagFunc<Element, Text, HTMLDialogElement>
readonly summary: TagFunc<Element, Text, HTMLElement>

@@ -146,0 +185,0 @@ // Web Components

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc