Cordova Slack Digest

Mon, 11 Oct 2021 08:21:09 GMT

User count: 4649

Join the conversation at slack.cordova.io

Channel #general (6 messages)


Sun, 10 Oct 2021 12:42:38 GMT

@pawelkolodziej81 says

@norman137 Returning to our deiscussion on input type="file" and capture attribute support.

Sun, 10 Oct 2021 12:48:13 GMT

@pawelkolodziej81 says

I have implemented solution without plugin support. It handles capture scenario, allowing to take a foto and return result directly to input. For no capture scenario I have implemented a chooser: file/camera if there are any “image like” signatures in accept attribute. For “document like” scenario implementation falls back to earlier file chooser implementation.

Sun, 10 Oct 2021 12:49:41 GMT

@pawelkolodziej81 says

I would like someone from cordova team to review this solution and discuss conditions of pull.

Sun, 10 Oct 2021 12:51:04 GMT

@pawelkolodziej81 says

Should I address this topic to DEV mailing group?

Sun, 10 Oct 2021 14:38:50 GMT

@lkslokesh25 says

@norman137 how can I use ejs template instead of index.HTML

Sun, 10 Oct 2021 14:44:28 GMT

@norman137 says

If you can precompile ejs -- then you can just incorporate the compile command into your build process, and generate the HTML output to your www folder, before you use the cordova build or cordova run command.

If you need runtime compilation -- I know EJS has runtime support but I don‘t know how well it work in a cordova environment. Using server-based rendering isn’t recommended as explained https://cordova.slack.com/archives/C068CHRJ5/p1633876843044300?thread_ts=1633846839.032900&cid=C068CHRJ5