Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blow-dry

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blow-dry - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

1

blow-dry.js

@@ -57,2 +57,3 @@ export class BlowDry extends HTMLElement {

head.append(sourceTempl);
templ.innerHTML = '';
currentCnt++;

@@ -59,0 +60,0 @@ }

@@ -66,2 +66,3 @@ import {BlowDryProps} from './types';

head.append(sourceTempl);
templ.innerHTML = '';
currentCnt++;

@@ -68,0 +69,0 @@ }

2

package.json
{
"name": "blow-dry",
"version": "0.0.8",
"version": "0.0.9",
"keywords": [

@@ -5,0 +5,0 @@ "web-components",

@@ -41,3 +41,25 @@ # blow-dry

## Templates inside of templates
My performance measurements indicate that if a template has a nested template inside, it is faster to extract out the template to a shared location, clone the reduced size template, and reference the shared template.
To instruct blow-dry to make this happen, add attribute blow-dry (or data-blow-dry) to the template:
```html
<template blow-dry></template>
```
What it will leave behind is a breadcrumb:
```html
<template blow-dry="blow-dry-src-1234"></template>
```
The content of the original template can then be obtained via:
```JavaScript
const clone = window['blow-dry-src-1234'].content.cloneNode(true);
```
## Viewing Demos Locally

@@ -44,0 +66,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc