slack-digest/2021-10-11.md
Mon, 11 Oct 2021 08:21:09 GMT
Join the conversation at slack.cordova.io
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
capturescenario I have implemented a chooser: file/camera if there are any "image like" signatures inacceptattribute. 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
wwwfolder, before you use thecordova buildorcordova runcommand.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