New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make an example project, using Squirrelly, for beginners #65
Comments
@nebrelbug Can I take this ? |
@Jayadev6191 that would be great! |
@Jayadev6191 do you have any questions? |
@nebrelbug I have started working on this with an express app. I will am planning to build a simple page application which incorporates all the functionalities of the library. Once I figure out how to use all the features (e.g building my own squirrelly custom helpers) I will add meaningful content to the project. example-project |
@Jayadev6191 I actually just found a bug with Squirrelly and Express |
No worries. Thanks for letting me know! |
Hi @Jayadev6191! I just pushed changes that should fix the problem (along with adding caching, which should make everything a lot faster) to the After a little more testing, I'll merge the changes to master and publish a new version on NPM, hopefully by the end of tomorrow. At that point, you'll be able to work on it :) |
Hi @nebrelbug great! Please let me know once you publish it :) |
@Jayadev6191 Squirrelly exports |
@Jayadev6191 I just published 6.0.0-beta. You can install that by |
Hi @nebrelbug sounds great! I will continue working on the example project without the beta. Thanks! :) |
@Jayadev6191 I just published version |
Thank you sir! Will work on this today and tomorrow. |
@nebrelbug The changes you made for the package(to make it work on express) expects the template files to have any specific extension (for e.g <temaplate_name.sqrl>) ? Please confirm. I made changes to my main file to have a view engine and passed Sqrl object to it.
Please let me know if this is the right way to set the template engine for squirrelly. |
That looks good! It expects files to have the extension |
@jeanha124 do you need any help? Here's a link that might be useful: https://squirrelly.js.org/recipes/squirrelly-with-expressjs. Thank you! |
@nebrelbug Was that meant for me ? If yes, You've tagged a different person! 😀 I looked at your codepen example to see how you have used custom Helpers which was not very clear. I might spend sometime on that and get back to you over the weekend. Thanks, |
Sorry @Jayadev6191! |
@Jayadev6191 How do we include one template file into another, any assistance in this matter will be appreciated |
Hi just want to contribute an example as a non-Node developer: https://codepen.io/hrsetyono/pen/gOOZWgW This basic usage in HTML is missing in the Learn section. We might think it's obvious how to do it, but lots of beginners will find this easier to grasp. |
@hrsetyono this is great! Would you like to put together a pull request to add this to the docs? If not I'll add it, probably under Resources / Examples 😃 |
@nebrelbug Glad you like it. Feel free to add it to the Resources / Examples. Maybe it's better to expand it a little to include For loop and IF conditional |
A good project would be fairly simple, and well commented.
Steps:
cheatsheet.md
or the online docs or wikiThe text was updated successfully, but these errors were encountered: