marko-js / marko

A declarative, HTML-based language that makes building web apps fun
https://markojs.com/
MIT License
13.35k stars 643 forks source link

[Question] Markojs and SailsJS #723

Closed mauricionr closed 6 years ago

mauricionr commented 7 years ago

how to implement markojs and sailsjs?

Thanks guys!

ianvonholt commented 7 years ago

If I'm not mistaken, SailsJS uses Consolidate.JS to help Express with it's view engine.

The caveat here is that consolidate.js only currently supports Marko 3. There is a pull request to update the library, but it seems that project is a bit behind.

See: http://sailsjs.com/documentation/concepts/views/view-engines And: https://github.com/tj/consolidate.js/blob/master/Readme.md#api

You may be able to tweak the handling of the view engine by using custom configuration parameters that load in the MarkoJS express module.

mauricionr commented 7 years ago

thanks @ianvonholt i will try it

austinkelleher commented 6 years ago

@mauricionr Did you ever get this working? If so, would you be interested in providing some documentation? Thanks!

mauricionr commented 6 years ago

sorry @austinkelleher, i could no test it yet :disappointed:

DylanPiercey commented 6 years ago

Going to close this for now since it looks like support got added for Marko4 in consolidate.js. @mauricionr please comment back if it doesn't work out and we can try to help you further 🙂.

mauricionr commented 6 years ago

Thanks @DylanPiercey