csmith111 / mentoring-1-forum

Forum
0 stars 0 forks source link

addTopic.pug #7

Closed ghost closed 7 years ago

ghost commented 7 years ago
extends layout

block content
    h3 Add Topic

    <form action="/actions/addTopic" method="post">
        <input name="topic" placeholder="topic" style="width: 300px" type="text"><br><br>
        <textarea name="text" placeholder="text" style="width: 300px"></textarea><br><br>
        <input name="userName" placeholder="user" style="width: 300px" type="text"><br><br>
        <input type="submit" value="Add Topic">
    </form>  

-- it's not a pug file, you should use pug syntax

P.S. Let's use kebab-case for file naming: add-topic.pug. It's more readable.

csmith111 commented 7 years ago

I had used a little html in the files since pug accepts html. But I have removed it now, after your commetn. I also renamed the file. If it looks good now we can close this.