Giter VIP home page Giter VIP logo

gwirl's People

Contributors

gamebox avatar

Stargazers

 avatar

Watchers

 avatar

gwirl's Issues

Support multiple transclusions?

Do we want to support multiple content transclusions? Some things like a base layout may want to allow a consumer to transclude HTML for things like head content, body content, and footer content.

If else and else support

Currently only if is supported, but adding if else and else support should be relatively simple. This should be done as soon as possible.

Create logo / branding

Need some kind of distinctive branding for the language before we create the website.

  • Brand colors
  • Logo
  • Font(s)

Implement "safe expression" syntax

Kind of a gap from Twirl, implement safe go expression syntax:

THis is a string that I want to appear verbatim, @(someValue.someMethod().value).

Notice that the parens demarcate the boundary of the expression, which is useful for usages where the expression is followed by a valid character in a Go expression.

Create website using Gwirl SSG

Create a lightweight Static Site generation tool on top of Gwirl and use it to publish a GitHub pages site for Gwirl.

Escape Go expression results

This is the highest priority thing to do, as it is likely considered a bug that this does not happen today. We can probably start with using something like

sb.WriteString(html.HTMLEscapeString(fmt.Sprintf("%v", /* expression */)))

And then refine from there, we'd probably want to extract that to a GwirlEscaped function in the package along with GwirlRaw

Support views subpackages

Right now all templates need to be written at the top level of the templates directory, as we don't traverse any subdirectories.

Support gwirl files in any package/directory

Should Gwirl support writing your Gwirl files in any directory, and have the _gwirl.go files be output in that same package?

Pros

  • Not so strict, and allows for better organization to meet a specific projects need
  • Removes the chance of conflict with existing project structure.

Cons

  • Requires us to search through an entire project for .gwirl files

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.