Coder Social home page Coder Social logo

能不能开一个SSR-branch about vuepack HOT 9 CLOSED

egoist avatar egoist commented on June 25, 2024
能不能开一个SSR-branch

from vuepack.

Comments (9)

egoist avatar egoist commented on June 25, 2024

可以吧,我待会到家看看。

ps:说到 up,此处应有弹幕(๑°3°๑)

from vuepack.

egoist avatar egoist commented on June 25, 2024

可以的话我觉得还是提交到 https://github.com/egoist/vue-isomorphic-starter 这个 Repo ?

from vuepack.

LucasIcarus avatar LucasIcarus commented on June 25, 2024

@egoist 啊嘞, 早知道有这个我就不自己写了... 我先看下...

from vuepack.

LucasIcarus avatar LucasIcarus commented on June 25, 2024

改动有点大... 我用的还是express, 而且用了babel-cli.. 基本的工作流脱胎于react的那个isomorphic starterkit, 要不我基于巨巨的那个isomorphic再写一个好了

另外问个问题.. ssr的话把页面内容直接强耦合在server/index.js里面是不是不太好? 如果要用xtpl之类的模版和renderToStream还有没有配合的可能?

from vuepack.

egoist avatar egoist commented on June 25, 2024

可以吧,这个略带实验性质。

xtpl 和 renderToStream 配合是什么意思

from vuepack.

LucasIcarus avatar LucasIcarus commented on June 25, 2024

Node.js后端使用模板引擎渲染一般都是res.render(filename, injections) 这种形式吧, 用stream的话是不是就不能用模板引擎了? 我是想表达这个意思

from vuepack.

egoist avatar egoist commented on June 25, 2024

嗯,直接使用 res.render 的模板引擎是不支持 stream 的

from vuepack.

egoist avatar egoist commented on June 25, 2024

似乎可以不使用 res.render,有一些支持 stream 的模板引擎 https://github.com/marko-js/marko#rendering-a-template

from vuepack.

LucasIcarus avatar LucasIcarus commented on June 25, 2024

@egoist 巨巨果然还是厉害啊! 但是又要去学一个轮子啊啊啊啊啊....
估计isomorphic的pr要在明天了, 可能只能做点修修剪剪的工作了.. 祝好~

from vuepack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.