Giter VIP home page Giter VIP logo

pug's People

Contributors

jumplink avatar oscarotero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pug's Issues

Add an simple API example to the readme

I wasn't sure at first if I could use the module since you write that you ported it for lume. My concern was that it may have been built as a plugin for lume and can't be used universally.

A small example can ensure that others do not feel the same way.

Publish on deno.land/x

I found the module later because it is not on deno.land/x. I think it would be used by more people if you would publish it there.

Error running example code

I try to run the example code from readme.

deno version: 1.20.6

error: Uncaught Error: Filename not set!
    throw new Error("Filename not set!");
          ^
    at compileBody (https://cdn.jsdelivr.net/gh/lumeland/[email protected]/mod.ts:120:11)
    at compile (https://cdn.jsdelivr.net/gh/lumeland/[email protected]/mod.ts:317:18)
    at file:///home/gjuoun/Code/deligenius/view-engine/src/pug.ts:20:12

How to reproduce:

import * as pug from "https://raw.githubusercontent.com/lumeland/pug/v0.1.2/mod.ts"

const template = `h1#title Pug - node template engine #{state}`// const template = `p.text Hello World!`

const result = pug.render(template, { state: "awesome" })

console.log(result);

Is this a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.