Vue plugin that allows inline rendering of strings, SVGs, or components within templates by registering a global <inline> component or using a locally scoped component. Version 1.0.1 is the latest stable release; last updated in 2017 with infrequent updates. Differentiators: provides a declarative, template-driven approach to embedding inline content without manual v-html usage. Alternatives like vue-svg-inline focus specifically on SVGs, whereas vue-inline supports arbitrary strings and file-loader output via require.
npm install vue-inlineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates global registration with Vue.use and inline rendering of a string and an SVG in a template.
Always pass trusted content or sanitize strings before passing to data.
Consider alternatives like vue-svg-inline or raw v-html with caution.
Use appropriate loaders (file-loader, svg-inline-loader) and ensure the required file returns inline content.
Ensure Vue is imported first: import Vue from 'vue'; import Inline from 'vue-inline';
Either use Vue.use(Inline, { data }) or import { makeComponent } and register locally in components.Ensure the prop matches a key in the data object: <inline name="foo"></inline>
No dependency data recorded yet.