Comment on XHP: A New Way to Write PHP (from Facebook)parentComments−adelevie16yRendered html that will be sent has an http response should have ending tags. That doesn't mean the programmer/designer has to write them: #a dumb ruby example: def p(content) "<p>"+content+"</p>" endp "hello" #=> "<p>hello</p>"
Comments
Rendered html that will be sent has an http response should have ending tags. That doesn't mean the programmer/designer has to write them: #a dumb ruby example: def p(content) "<p>"+content+"</p>" end
p "hello" #=> "<p>hello</p>"