Announcement

Collapse
No announcement yet.

Using for loop in html file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blade
    replied
    Originally posted by dcorsus View Post
    This looks what you are looking for


    {{~ for $i in 4..9 offset:2 ~}} {{ $i }} {{~ endfor ~}}
    Thank you sir

    Leave a comment:


  • dcorsus
    replied
    This looks what you are looking for


    {{~ for $i in 4..9 offset:2 ~}} {{ $i }} {{~ endfor ~}}

    Leave a comment:


  • dcorsus
    replied
    I assume you are refering to the liquid tags and not JavaScript. If so, I believe HS follows (or implemented) scriban

    https://github.com/scriban/scriban
    https://github.com/scriban/scriban/b...oc/language.md

    Check it out and see if you can find the correct syntax.

    Hope it helps.

    Leave a comment:


  • Blade
    started a topic Using for loop in html file

    Using for loop in html file

    I cannot seem to find an example of using a basic for loop in an html page
    I am looking to do something like this:

    Code:
    {{ for (var i=1 ; i <= 12; ++i) }}
    {{end}}
Working...
X