Reputation: 8297
I am trying to use the coffeescript in jade and ### doesn't seem to work. and the block level comment of jade within coffeescript doesn't allow me to comment a set of lines. it just allows a complete block based of indentation commented. any suggestions???
thanks
Upvotes: 4
Views: 983
Reputation: 14400
###
comments seems to work for me (don't forget this is for multilines comments so you need to close them):
!!! 5
html(lang='en')
head
title App
body
:coffeescript
### Comment ###
require "index"
###
Comment 2
###
compiles to:
<!DOCTYPE html>
<html lang="en">
<head>
<title>App</title>
</head>
<body> <script type="text/javascript">
/* Comment
*/
(function() {
require("index");
/*
Comment 2
*/
}).call(this);
</script>
</body>
</html>
Upvotes: 4