문제

I know that its possible to reference the contents of your images folder using tritium. I am however using the read() function to bring in an html snippet. Is there a way to specify images via that html snippet? eg:

<img src='/moovweb_local_assets_/images/Logo150.png">' alt="1" /> 
도움이 되었습니까?

해결책

I dont know about this but i can give you some trick. Add any class or id to this img tag and add the src attribute and its url with the help of tritium. eg.,

html:

<img id="myImage" alt="1" /> 

tritium:

$$("#myImage"){
   attribute('src',asset('images/Logo150.png'));
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top