Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:20

    Scrum on master

    test: migrate to ES6 Merge pull request #338 from Su… (compare)

  • 10:20
    Scrum closed #338
  • Oct 17 17:04
    SukkaW review_requested #338
  • Oct 15 08:22
    SukkaW synchronize #338
  • Oct 15 06:57
    Scrum review_request_removed #338
  • Oct 15 06:57
    Scrum review_requested #338
  • Oct 15 06:57
    Scrum review_request_removed #338
  • Oct 15 06:47
    SukkaW review_requested #338
  • Oct 15 06:47
    SukkaW review_requested #338
  • Oct 15 06:47
    SukkaW review_requested #338
  • Oct 15 06:47
    SukkaW review_requested #338
  • Oct 15 06:47
    SukkaW opened #338
  • Oct 15 06:31

    Scrum on master

    docs: change test status (compare)

  • Oct 15 06:29

    Scrum on milestone-0.13.4

    (compare)

  • Oct 15 06:29

    Scrum on master

    ci: change travis to github act… 0.13.4 Merge pull request #337 from po… (compare)

  • Oct 15 06:29
    Scrum closed #337
  • Oct 15 06:29
    coveralls commented #337
  • Oct 15 06:29
    coveralls commented #337
  • Oct 15 06:29
    coveralls commented #337
  • Oct 15 06:28
    Scrum synchronize #337
Michael Ciniawsky
@michael-ciniawsky
@jitendravyas working now? 😛
Jitendra Vyas
@jitendravyas
@michael-ciniawsky Thanks for reply. I will check this in morning tomorrow. Thanks for all the suggestions
Michael Ciniawsky
@michael-ciniawsky
@jitendravyas kk, if you get stuck make a test repo and share the link here, not sure if e.g include({ root : `{path}/components/` }) is 100% accurate (with final slash, yes/no, all that shit :)), i'm working on handling file.path within gulp-posthtml itself, so plugin options can be static and relative to the current file processing include({ root: 'components' }) done.... The current behaviour is definitely a pain point.
Jitendra Vyas
@jitendravyas
Does PostHTML have templates?
Michael Ciniawsky
@michael-ciniawsky
@jitendravyas posthtml-expressions (plugin) or poshtml-pug (parser) with option.locals
Michael Ciniawsky
@michael-ciniawsky
@jitendravyas does gulp work now ?
Jitendra Vyas
@jitendravyas
@michael-ciniawsky I did not try that again as I had to switch to Nujucks coz I needed template support.
Jitendra Vyas
@jitendravyas
@michael-ciniawsky can you give me an example of how to use template in PostHTML like this
{% extends "parent.html" %}

{% block left %}
This is the left side!
{% endblock %}

{% block right %}
This is the right side!
{% endblock %}
Jeff Escalante
@jescalan
@jitendravyas https://github.com/posthtml/posthtml-extend should do the trick for you
Jitendra Vyas
@jitendravyas
@jescalan looks like but I don’t want to keep my content in JS file
Jeff Escalante
@jescalan
you dont have to keep the content in a js file
you have the content and the layouts both in html files
Jitendra Vyas
@jitendravyas
Is it possible to use https://www.npmjs.com/package/gulp-data with PostHTML to keep content separate from markup?
Jeff Escalante
@jescalan
@jitendravyas you can use this plugin: https://github.com/posthtml/posthtml-expressions
if you are using, for example, json -- require the json file then pass it in as locals
Jitendra Vyas
@jitendravyas
Thanks @jescalan
I wonder if anyone using PostHTML in actual app
Jeff Escalante
@jescalan
I'm sure they are!
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?