Giter Site home page Giter Site logo

elm-html-shorthand's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elm-html-shorthand's Issues

ImgParam

I guess ImgParam have to be as follows

type alias ImgParam = 
    { class : ClassString
    , src : UrlString
    , width : Maybe Int
    , height : Maybe Int
    , alt : Maybe String
    }

Should we use short or long names for derived elements?

For example, <a> and <button> has the idiomatic forms:

a' : UrlString -> TextString -> Html
button' : TextString -> Signal.Message -> Html

should a "button" link (an anchor turned into a button via the onClick event) look like:

aButton' : TextString -> Signal.Message -> Html

or

buttonLink' : TextString -> Signal.Message -> Html

or even one of these?

a'button : TextString -> Signal.Message -> Html
button'link : TextString -> Signal.Message -> Html

Similarly <input> has several possible idiomatic forms:

inputField' : FieldUpdate -> Html
inputRadio' : FieldUpdate -> Html
inputCheckbox' : FieldUpdate -> Html

or

field' : FieldUpdate -> Html
radio' : FieldUpdate -> Html
checkbox' : FieldUpdate -> Html

or

input'field : FieldUpdate -> Html
input'radio : FieldUpdate -> Html
input'checkbox : FieldUpdate -> Html

Note that all of these would all have classy forms also:

aButtonc : TextString -> Signal.Message -> Html -- possibly buttonLinkc
inputFieldc : FieldUpdate -> Html
inputRadioc : FieldUpdate -> Html
inputCheckboxc : FieldUpdate -> Html

versus

buttonlinkc : TextString -> Signal.Message -> Html
fieldc : FieldUpdate -> Html
radioc : FieldUpdate -> Html
checkboxc : FieldUpdate -> Html

versus

acbutton : TextString -> Signal.Message -> Html
inputcfield : FieldUpdate -> Html
inputcradio : FieldUpdate -> Html
inputccheckbox : FieldUpdate -> Html

Seems that v 7.0.0 won't build with Elm 0.15.1

I got this message when attempting to install my package which uses elm-html-shorthand:

Downloading circuithub/elm-bootstrap-html
Downloading circuithub/elm-html-extra
Downloading circuithub/elm-html-shorthand
Downloading elm-lang/core
Downloading evancz/elm-html
Downloading evancz/elm-http
Downloading evancz/virtual-dom
Packages configured successfully!
Detected errors in 1 module.
## ERRORS in dependency circuithub/elm-html-shorthand 7.0.0 ####################

This error probably means that the 'circuithub/elm-html-shorthand' has some
package constraint that is too permissive. You should definitely inform the
maintainer to get this fixed and save other people from this pain.

In the meantime, you can attempt to artificially constrain things by adding
some extra constraints to your elm-package.json though that is not
the long term solution.

My own elm-package.json looks like this:

{
    "version": "1.0.0",
    "summary": "helpful summary of your project, less than 80 characters",
    "repository": "https://github.com/USER/PROJECT.git",
    "license": "BSD3",
    "source-directories": [
        ".",
        "src"
    ],
    "exposed-modules": [],
    "dependencies": {
        "circuithub/elm-bootstrap-html": "6.3.0 <= v < 7.0.0",
        "circuithub/elm-html-shorthand": "8.0.0 <= v < 9.0.0",
        "elm-lang/core": "2.1.0 <= v < 3.0.0",
        "evancz/elm-html": "3.0.0 <= v < 4.0.0",
        "evancz/elm-http": "1.0.0 <= v < 2.0.0"
    },
    "elm-version": "0.15.0 <= v < 0.16.0"
}

I'm not sure what the issue is, a first look at the deps for 7.0.0 seem okay. I did notice one bit of strangeness: edad2a8 in this commit it looks like the version goes from 8.0.1 to 7.0.0. Am I reading that correctly? Would that cause problems?

Thanks!

encodeClass issues

All the classes are converted to lower case with your package which seems my styles not to work correctly.

I use upper-case letters in my classes because I use BEM methodology.

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.