by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 02 08:29
    Scrum commented #221
  • Jul 02 08:18
    yangmingshan commented #221
  • Jun 22 06:22

    Scrum on milestone-0.13.1

    (compare)

  • Jun 22 06:22

    Scrum on master

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

  • Jun 22 06:22
    Scrum closed #327
  • Jun 22 06:21
    coveralls commented #327
  • Jun 22 06:20
    Scrum review_request_removed #327
  • Jun 22 06:20
    Scrum review_request_removed #327
  • Jun 22 06:20
    Scrum review_request_removed #327
  • Jun 22 06:20
    Scrum review_requested #327
  • Jun 22 06:20
    Scrum review_requested #327
  • Jun 22 06:20
    Scrum review_requested #327
  • Jun 22 06:20
    Scrum opened #327
  • Jun 22 06:19

    Scrum on milestone-0.13.1

    build: update dep dev chore(release): 0.13.1 (compare)

  • Jun 22 06:19

    Scrum on v0.13.1

    (compare)

  • Jun 22 06:13

    Scrum on ISSUE-324_fix_typings

    (compare)

  • Jun 22 06:13

    Scrum on master

    fix(types): correctly export na… Merge pull request #326 from po… (compare)

  • Jun 22 06:13
    Scrum closed #326
  • Jun 22 06:13
    Scrum closed #324
  • Jun 22 06:13
    Scrum review_request_removed #326
Jitendra Vyas
@jitendravyas
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?
Jitendra Vyas
@jitendravyas
Is POSTHTML project still active?
Ivan Demidov
@Scrum
@jitendravyas can you help ?
Ivan Demidov
@Scrum
Hello, if someone has @michael-ciniawsky current contacts? on which you can quickly contact him.
Jacob Bearce
@JacobDB
Looks like this room is pretty dead, but hopefully someone can help me. I'm having difficulty understanding how to use this. What I'd like to do is create a custom element like <icon use="some-icon-id" class="some-class" id="some-id" data-attr="some attr" /> that transpiles to <i class="icon some-class" id="some-id" data-attr="some attr"><svg class="icon_svg" aria-hidden="true"><use xlink:href="#some-icon-id"></use></svg></i>. Is this the right module for this, and if so, could someone point me to an example on how to achieve something like this?
Ivan Demidov
@Scrum
@JacobDB I will try to answer but a little later
Jacob Bearce
@JacobDB
@Scrum thanks, I'd appreciate it
Ivan Demidov
@Scrum
@JacobDB please do an example of what you have and what you need in the repository on github
Jonathan Neal
@jonathantneal
Would anyone from PostHTML be interested in working with me on a new version of PostHTML that could work more like PostCSS? It started as a Reshape PR, but at some point I started working from scratch. https://jonathantneal.github.io/posthtml/api/
If not, this is definitely something I want to be integrate-able with both PostHTML and Reshape as a plugin. In fact, in ways that’s more ideal. I’m just kind of lost in how vast this has become.