Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML to Jade help

I am trying to create a simple form with 2 input fields and 1 button.

Here's HTML that needs to be translated to Jade:

<form name="input" action="html_form_action.asp" method="get">
  Username: <input type="text" name="user" />
  Password: <input type="text" name="pswd" />
  <input type="submit" value="Submit" />
</form>

Please help me before I throw this computer out of the window and send a kill squad after Jade templating language developers.

like image 505
Sahat Yalkabov Avatar asked Aug 14 '11 00:08

Sahat Yalkabov


People also ask

How do I convert HTML to PUG?

Click on the URL button, Enter URL and Submit. This tool supports loading the HTML File to transform to PUG. Click on the Upload button and select File. HTML to PUG Converter Online works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.

What is Jade in HTML?

Jade is a template engine for node. js and the default rendering engine for the Express web framework. It is a new, simplified language that compiles into HTML and is extremely useful for web developers. Jade is designed primarily for server-side templating in node.

What is an HTML PUG?

Pug is a template engine for Node and for the browser. It compiles to HTML and has a simplified syntax, which can make you more productive and your code more readable. Pug makes it easy both to write reusable HTML, as well as to render data pulled from a database or API.

Is Jade and PUG same?

js, also known as PUG, is a Javascript library that was previously known as JADE. It is an easy-to-code template engine used to code HTML in a more readable fashion. One upside to PUG is that it equips developers to code reusable HTML documents by pulling data dynamically from the API.


1 Answers

form(name="input", action="html_form_action.asp", method="get")
  | Username:
  input(type="text", name="user")

  | Password:
  input(type="text", name="pswd")

  input(type="submit", value="Submit")
like image 200
Alex Wayne Avatar answered Sep 28 '22 10:09

Alex Wayne