squirrellyjs / squirrelly

Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript ⛺
https://squirrelly.js.org
MIT License
599 stars 82 forks source link

Comment about self-closing helpers #63

Closed first-timers[bot] closed 5 years ago

first-timers[bot] commented 5 years ago

🆕🐥☝ First Timers Only.

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

About First Timers Only.

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

@@ -112,7 +112,7 @@ function Compile (str) {
         funcStr += nativeHelpers[m[10]].selfClosing(innerParams)
         lastIndex = regEx.lastIndex // changeTags sets regEx.lastIndex
       } else {
-        funcStr += 'tR+=Sqrl.H.' + m[10] + '(' + innerParams + ');'
+        funcStr += 'tR+=Sqrl.H.' + m[10] + '(' + innerParams + ');' // If it's not native, passing args to a non-native helper
       }
     } else {
       console.error('Err 0')
  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can edit files directly in your browser

🤔❓ Questions

Leave a comment below!

This issue was created by First-Timers-Bot.

AllUsernamesHaveBeenTaken commented 5 years ago

🙋

AllUsernamesHaveBeenTaken commented 5 years ago

Hyia! Could I claim this issue please?

Hi, I am already on it. Thanks.

Artistic18 commented 5 years ago

Can i work on it?

AllUsernamesHaveBeenTaken commented 5 years ago

Can i work on it?

Already done.