by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 20 12:06
    frederikhors edited #334
  • Sep 20 12:06
    frederikhors opened #334
  • Sep 18 06:47
    Scrum transferred #333
  • Sep 18 06:46
    Scrum commented #333
  • Sep 17 22:12
    The-Podsiadly opened #333
  • Sep 15 11:04

    Scrum on master

    docs: remove gitter because not… (compare)

  • Aug 22 13:09

    Scrum on milestone-0.13.3

    (compare)

  • Aug 22 13:09

    Scrum on master

    build: update dep dev chore(release): 0.13.3 Merge pull request #332 from po… (compare)

  • Aug 22 13:09
    Scrum closed #332
  • Aug 22 13:08
    coveralls commented #332
  • Aug 22 13:07
    coveralls commented #332
  • Aug 22 13:06
    Scrum synchronize #332
  • Aug 22 13:06

    Scrum on milestone-0.13.3

    chore(release): 0.13.3 (compare)

  • Aug 22 13:06

    Scrum on v0.13.3

    (compare)

  • Aug 22 13:03
    Scrum review_requested #332
  • Aug 22 13:03
    Scrum review_requested #332
  • Aug 22 13:03
    Scrum review_requested #332
  • Aug 22 13:03
    Scrum opened #332
  • Aug 22 13:02

    Scrum on milestone-0.13.3

    build: update dep dev (compare)

  • Aug 22 12:02
    Scrum transferred #331
Jeff Escalante
@jescalan
I am using reshape on a number of large production sites, which is very similar to posthtml, so its definitely feasible :)
Jitendra Vyas
@jitendravyas
what is reshape?
Jeff Escalante
@jescalan
a slightly different version of posthtml that also produces client-side templates. it's very similar though, so surely posthtml would also work in production without issue
Jitendra Vyas
@jitendravyas
Nice I didn’t know that. So which one is better PostHTML or Reshape.
How similar or different they are
Jeff Escalante
@jescalan
thats a very opinion-based question, you'd have to try it out yourself!
Jitendra Vyas
@jitendravyas
it seems posthtml have more plugins
Jeff Escalante
@jescalan
definitely true!
Jitendra Vyas
@jitendravyas
Is there something like Stylelint for HTML?
I want to force team members to push HTML with specific rules sets
If rule doesn’t match they should not be able to commit/push code
Michael Ciniawsky
@michael-ciniawsky
@jitendravyas nope, posthtml-hint (just a wrapper around HTMLHint), I'm playing around migrating/building upon htmllint on top of posthtml, currently htmllint is/was a student's project, if I remember that right, so long-term usage and future development is highly uncertain. A good linter is one of posthtml's greater lacks atm
Jitendra Vyas
@jitendravyas
Is there any other tool?
What i actually want is that if inhtml a developer use a css class and if that same classes name have been used somewhere else already in the project, it should give error message to developer
Michael Ciniawsky
@michael-ciniawsky
posthtml-classes as starting point, to hack your own solution maybe
Jitendra Vyas
@jitendravyas
Jitendra Vyas
@jitendravyas
@jescalan it seems Reshape has better options for templating.
by the way is it possible to use PostHTML and Reshape both together?
Jeff Escalante
@jescalan
I'm also definitely interested in html linting, would be happy to help with a project like this
it's on my list!
it would need some good text editor plugins as well to be really solid
what do you mean by use them together?
the apis for the two aren't compatible, if this is what you're asking, so you cant for example use a posthtml plugin with reshape or the other way around
Dmitriy Velychko
@DmitriyVelychko
Hey guys. I recently find out this tool. I need to use some sort of code style for pure html markup (like attributes order, position of closing tag, etc). Does post-html already have such validation or I need to try create it by myself?
Michael Ciniawsky
@michael-ciniawsky
@DmitriyVelychko Well politely spoken this is WIP atm :), there is posthtml-attrs-sorter for attrs order :stuck_out_tongue: , for linting take a look at htmllint or use the wrapper around HTMLHint posthtml-hint I made a while ago (likely it needs an update, feel free to ping me @here :)). Finally I made posthtml-w3c which checks your HTML against W3C Standards.
Michael Ciniawsky
@michael-ciniawsky
ohh and I forgot posthtml-tidy :smile: . HTML/XML Formatter (Fixes malformed markup, to some point) Tidy --> libtidy
but needs also an update I guess :stuck_out_tongue:
Ivan Demidov
@Scrum
@DmitriyVelychko and posthtml-beautify
Dmitriy Velychko
@DmitriyVelychko
Oh, thanks a lot friends. I will check these :+1:
Michael Ciniawsky
@michael-ciniawsky
@GitScrum uhh :worried: yep sry I missed it, why is it not in the org :stuck_out_tongue: ?
Ilya Daynatovich
@BeatC
Hi guys! I want to find posthtml plugin that allows me to use '#include virtual' directive. Do you know anything about it? Or I should write such plugin by myself?
Jeff Escalante
@jescalan
not this?
Ilya Daynatovich
@BeatC
Unfortunately, no. Because this plugin uses its own syntax: <include> tag. And I need some kind of SSI directives emulation.
Chris Earls
@cearls
Is it possible to use sugarml with javascript templating like:
script(type="text/template" id="hit-template")
  {{#hits}}
  .hit
    .hit-image
      img(src="{{ image }}" alt="{{ name }}")

    .hit-content
      h2.hit-name {{{ _highlightResult.name.value }}}
      p.hit-description {{{ _highlightResult.description.value }}}
  {{/hits}}
Michael Ciniawsky
@michael-ciniawsky
@cearls yes but the {{# hits}} .... {{/hits}} => | {{#hits}} .... | {{/hits}} newline 'string' based content needs to be 'piped'. Is this Ember/Handlebars?, asking because there is posthtml-expressions which gives you template tags
....
each(loop="hit in hits")
  .hit 
     .hit-image(src={{ hit.image }} alt={{ hit.name }})
  .hit.content
    ...
....
Chris Earls
@cearls
@michael-ciniawsky ah, i see
It’s Hogan
thanks for the quick reply
Chris Earls
@cearls
@michael-ciniawsky I’m getting Unexpected character ‘# when trying to use | {{#hits}}
Also, Hogan uses {{}} and {{{}}} for delimiters, the same as posthtml-expressions - I’m not sure I’m following how to use the two together
Jeff Escalante
@jescalan
@cearls you'll have to change the posthtml-expressions delimiters to something different so it doesnt conflict with hogan
you can do this with the delimiters option
:)
Chris Earls
@cearls
@jescalan thanks
Ivan Demidov
@Scrum
Automatically detects process (@PostCSS or @PostHTML) creates a configuration and loads the plugins. https://github.com/post-org/post-load-plugins
Mark Brouch
@markbrouch
Hi, I'm trying to configure posthtml-loader with posthtml-pug parser in webpack 3. In my webpack.config.js module.rules I have
{
  loader: 'posthtml-loader',
    options: {
      parser: require('posthtml-pug')({
        locals: { foo: 'bar' }
      })
    }
 }
but I get the error Module build failed: AssertionError [ERR_ASSERTION]: path must be a string

when I do just

...
options: {
  parser: 'posthtml-pug'
}

webpack compiles without error, but I'm not able to pass any options to pug

what am I missing in my setup here?