Coder Social home page Coder Social logo

Comments (2)

jimafisk avatar jimafisk commented on June 12, 2024

Hi @diyism, that's an interesting concept, are you mainly looking to compile Svelte components in Go directly? I mean you could always point Caddy at the built assets that Plenti produces (we're actually evaluating Caddy for a hosted Plenti service), but it doesn't sound like that's what you're looking to do in this case? I guess I don't fully understand what it would look like to build a custom website using a Caddy plugin, but would enjoy being enlightened if you have ideas. Thanks!

from plenti.

diyism avatar diyism commented on June 12, 2024

I see that when I run "./plenti serve" it needs 2 seconds to build the files in the "public" directory.

I can't find an example plugin that I want for Caddy web server,

but there's a standalone project "algernon" (https://github.com/xyproto/algernon),
after I run "./welcome.sh", I can modify the file of "algernon/samples/greetings/index.md",
and immediately the content changed in the web page of "http://localhost:3000/greetings/",
it's amazing.

but what a pity:

  1. algernon doesn't support svelte files, (xyproto/algernon#125)
  2. algernon is not a caddy plugin, I need to forward traffic from the caddy to algernon's 127.0.0.1:3000 port.

so, I'm dreaming:

  1. Plenti can realize the realtime-rendering function for svelte files(for example "index.svelte")
  2. Plenti is a caddy plugin, I need only start the caddy server to avoid the traffic forwarding and a seperate process.

from plenti.

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.