home.social

#ejs — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ejs, aggregated by home.social.

  1. Koostööpartnerite jahipäev Hallistes – Eesti Jahimeeste Selts

    Fotod: EJS Halliste Jahiselts kutsus 15. novembril ühisjahile maaomanikud ja koostööpartnerid. Halliste jahiseltsi juhatuse liige ja jahijuhataja Erkki…
    #Estonia #EE #Europe #Europa #EU #Eesti #EJS #estonia #Hallistejahiselts #jahimees #jahindus #jahipidamine #jaht #ühisjaht #Uudised #viljandimaa
    europesays.com/2577286/

  2. Exciting new Quarto experiment featuring listings! Need advanced filtering and a sleek new style?
    With a touch of coding, it's surprisingly easy to create something impressive.

    Check the comments for links to the demo and code! 🎉

  3. Created a simple web app with Express JS that uses MVC architecture. It uses AJAX to send data between the view and the controller, and the code is neatly organized in appropriate areas.

    It took me a few days of work just to get data moving between the controller and the view (both JS files, one on the server and one in the browser). I figured out that the best way for me to do it is for the view to send an AJAX POST request (potentially containing user input) to the server, which passes it to the controller. Then the controller updates the model as needed and passes the state of the model to the server, which sends the state to the view as a response to the POST request. The view then manipulates the DOM to update the UI as needed.

    I did so many web searches for "how to send data between controller and view with express" or similar, and found nothing related to this approach. Mostly people were passing data to an EJS view when rendering, which is not how I want to do things. I don't want to write my UI logic in EJS markup inside an HTML file, I want to write it in JavaScript in its own file. Frankly EJS just doesn't seem like a good way to perform DOM manipulation to me, but maybe it's there for people who don't want to write a seperate front end.

    #webDev #JavaScript #EJS #ExpressJS #NodeJS

  4. Want to try contributing to an #opensource project? nightwatch-docs is a #EJS project that has open issues. Check out this issue on GitHub: github.com/nightwatchjs/nightw

  5. I'm really looking forward to #EJS this year. Sooo much work to do first though. If you've got old trip photos that are fun to remember, please post them and add the #jeep or #offroad hash tags so I can find them.
    #xj #4x4

  6. We're still a few months out from easter jeep safari, but I've got soooo much work to do.

    Days like this one are what I think about before I sleep at night...

    #jeep #ejs #offroad #4x4 #4wd

  7. My #WeekendProject continues some work with #NodeJS and #EJS. Getting close to something that might be actually useful to share if the other site continues their stance on Mastodon links.

  8. Using partials in Node.js are incredibly useful. They can help clean up your code a lot, and help prevent mistakes. Earlier, got some strange encoding errors, and later realized that I wasn't using a proper HTML5 boilerplate. EJS makes using partials easy. #ejs #partials #nodejs