jade-to-handlebars's People
jade-to-handlebars's Issues
where would i get converted file (hbs file)
Nothing happens (repeat)
This converter does nothing. Even the runkit at
https://npm.runkit.com/jade-to-handlebars
with the given example. Nothing happens. Luckily nothing is destroyed.
This code is a dud.
Nothing happening
No matter with what option I run jade-to-handlebars, it does nothing. It literally just runs without giving me any clue as to what's happening. It produces no output, no .hbs files ever.
Although manually converting templates is interesting, I'd rather have jade-to-handlebars work. Any clues as to how to approach this?
command not found: jade-to-handlebars
Hey --
I npm install'd jade-to-handlebars but when I run the command jade-to-handlebars
in the directory with my Jade files, I get the following error:
zsh: command not found: jade-to-handlebars
I've tried doing node jade-to-handlebars
as well in my main directory and in the directory with the Jade files. Any help? I know this has to be a stupid mistake on my part.
ReferenceError: opt is not defined
Greetings.
When given the jade-to-handlebars
command, it threw this error:
yammy@fedora01:~/jadeWork/testConversion/views$ jade-to-handlebars
/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:71
(opts && opts.filename ? ' in ' + opt.filename : '')
^
ReferenceError: opt is not defined
at walk (/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:71:41)
at Array.map (native)
at walk (/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:12:22)
at module.exports (/usr/local/lib/node_modules/jade-to-handlebars/index.js:10:14)
at /usr/local/lib/node_modules/jade-to-handlebars/bin/jade-to-handlebars.js:11:20
at Array.forEach (native)
at Object.<anonymous> (/usr/local/lib/node_modules/jade-to-handlebars/bin/jade-to-handlebars.js:8:24)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
There are 3 .jade files in the directory and three folders. After command/error, there is no change.
Nothing happens !!
I tried running the command with all the possible combinations but nothing happens at all.
No output, not even a single message saying whether even a file was found.
Thrown error exits app
โ views git:(master) โ jade-to-handlebars layout.jade
/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:69
throw new Error(
^
Error: Unsupported node, type Extends in gallery.jade
at walk (/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:69:9)
at Array.map (native)
at walk (/usr/local/lib/node_modules/jade-to-handlebars/lib/walk.js:12:22)
at module.exports (/usr/local/lib/node_modules/jade-to-handlebars/index.js:10:14)
at /usr/local/lib/node_modules/jade-to-handlebars/bin/jade-to-handlebars.js:11:20
at Array.forEach (native)
at Object.<anonymous> (/usr/local/lib/node_modules/jade-to-handlebars/bin/jade-to-handlebars.js:8:24)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
I'm assuming the "Extends" keyword is the problem, given the error message. Below is the gallery.jade text that the error is referencing:
// 438 px width for each photo on my display.
// * Add more MQ's for bigger screens.
// ** Need to add second set of full-res photos to ajax request for lightbox; make each img an a element.
extends layout
block content
h1.caviarDreams-font#theH1(style="margin-top: 20px; font-size: 65px;")
.photos-container#photosContainer
script(type="text/javascript", src="/js/photos.js")
Not Converting
Hello Team,
I am trying to convert jade files, few files are not converting. Out of 20 files, I am able to convert only 3 files. Below is the one file which I am not able to convert.
Could you please give me a hint if there is any problem in the jade file.
extends layout
block content
.page-header
h3 Contact Form
form.form-horizontal(method='POST')
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label(class='col-sm-2 control-label', for='name') Name
.col-sm-8
input.form-control(type='text', name='name', id='name', autofocus=true)
.form-group
label(class='col-sm-2 control-label', for='email') Email
.col-sm-8
input.form-control(type='text', name='email', id='email')
.form-group
label(class='col-sm-2 control-label', for='message') Body
.col-sm-8
textarea.form-control(name='message', id='message', rows='7')
.form-group
.col-sm-offset-2.col-sm-8
button.btn.btn-primary(type='submit')
i.fa.fa-envelope
| Send
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.