yivo / pug-ruby Goto Github PK
View Code? Open in Web Editor NEW๐ถ Compile Jade and Pug from Ruby.
License: MIT License
๐ถ Compile Jade and Pug from Ruby.
License: MIT License
Hello, great gem!
Running into a problem though. pug-2.0.0.min.js is not included when I install your gem.
So this: Pug.use "2.0.0"
does not work.
I am currently using this instead for the moment: Pug.use "2.0.0-beta10"
Here are the different pug js files that are included.
pug-2.0.0-beta10.min.js
pug-2.0.0-beta11.min.js
pug-2.0.0-beta12.min.js
pug-2.0.0-beta1.min.js
pug-2.0.0-beta2.min.js
pug-2.0.0-beta3.min.js
pug-2.0.0-beta4.min.js
pug-2.0.0-beta5.min.js
pug-2.0.0-beta6.min.js
pug-2.0.0-beta7.min.js
pug-2.0.0-beta8.min.js
pug-2.0.0-beta9.min.js
pug-2.0.0-rc.1.min.js
pug-2.0.0-rc.2.min.js
pug-2.0.0-rc.3.min.js
pug-2.0.0-rc.4.min.js
Could you work with Tilt (Generic interface to multiple Ruby template engines) team to add pug-ruby to community supported template.
I also asked at their side. rtomayko/tilt#346
This project is awesome! I always dream of being able to use pug in ruby because all template languages in Ruby sucks, only Slim has similar syntax but does not ship all the features of pug.
This is an awesome project, and I'd like to use it to convert some of the components I currently have written in slim to pug. This is because there is a frontend module in the app that has to render the same components but with javascript (with a webpack loader pug works very well).
However I noticed that any additional Pug.compile ...
(or Jade.compile
for that matter) takes an extra few milliseconds and if you end up having 20+ of these in one view the page takes a couple of seconds to load which makes the experience much worse than using native slim templates.
Is there a way to compile a template once and then render it with different locals? Because that's essentially the biggest issue, I have 20+ of the same component (the template) with different contents. When you compile a pug template in Javascript you can then call the render function with different locals, is there a way to do this with this library?
Thanks
Hey, I have also mentioned this in the other repo which I am using (DougBeney/jekyll-pug#13) but is there any way to make pug-ruby
use pug
installed locally rather than globally? It is not working with nvm
, and also installing globally introduces other problems. If there's any way I can help solve this, please let me know! I'd love to help out if it is at all possible to resolve this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.