Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this plugin can work with SSR? #3

Open
applecat opened this issue Oct 26, 2017 · 1 comment
Open

Does this plugin can work with SSR? #3

applecat opened this issue Oct 26, 2017 · 1 comment

Comments

@applecat
Copy link

I tried this plugin with Nuxt.js. Everything works fine except SSR - plugin works only on client side.
Can vue-linkify prepare HTML on server side? Thanx.

plugins/vue-linkify.js:

import Vue from 'vue'
import linkify from 'vue-linkify'
Vue.directive('linkified', linkify)

template:

<p v-html="studio.text" v-linkified:options="{ nl2br: true }"></p>
@2xAA
Copy link

2xAA commented Apr 18, 2018

I've written a Vue component for Linkify which works for SSR also.
It can be found in the fork mentioned in this Issue: Hypercontext/linkifyjs#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants