Which module provides "use_rendering"?

I’m using: SWI-Prolog version 8.4.1

Regards.

I found it in swish/lib/render.pl

With regards to my other reply on how I find code.

Click triangle to expand section

Using Notepad++ (or your favorite text search tool such as grep)

Using this search

for these local GitHub repositories

Beekeeper-66d7712ab5e457471d890c109ff78e1745e2a8e0
bench-master
bornhackgame-main
ClioPatria-master
contrib-protobufs-master
docker-swipl-linux-ci-master
ecCausaSnipper-master
LudumDare-master
LudumDare48-66de13f79e278dd7cd361db20328e227d24e56a4
packages-bdb-master
packages-chr-master
packages-clib-master
packages-cppproxy-master
packages-http-master
packages-inclpr-master
packages-jpl-master
packages-ltx2htm-master
packages-odbc-master
packages-pcre-master
packages-pengines-master
packages-pldoc-master
packages-RDF-master
packages-real-master
packages-semweb-master
packages-sgml-master
packages-ssl-master
packages-utf8proc-master
packages-xpce-master
packages-yaml-master
packages-zlib-master
pengines-master
plweb-blog-master
plweb-examples-master
plweb-master
plweb-www-master
prolog-f28911d86e82b29c52078a2da498c82d39a0b07e
prolog-ludumdare44-6d6e3974d2f49c9ada2dfaff2929d3712b9a3c72
rclswi-master
sCASP-swipl
swipl-devel-master
swipl-master
swipl-server-js-client-master
swiplwebtut-master
swish-master
transhavengame-eb2b92a98e2274111fce4699f554554227dcf312
webstat-master

this was found
(Note: The results in NotePad++ are color coded, each section can be expanded/collapsed, clicking a line takes one right into the file and at that line, the results themselves can be further searched, and the results can be selected and copied as text.)

Search "use_rendering" (27 hits in 9 files of 3433 searched)
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\examples\clpfd_queens.pl (1 hit)
	Line 2: :- use_rendering(chess).
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\examples\clpfd_sudoku.pl (1 hit)
	Line 2: :- use_rendering(sudoku).
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\examples\grammar.pl (1 hit)
	Line 4: :- use_rendering(svgtree, [list(false)]).
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\examples\houses_puzzle.pl (1 hit)
	Line 29: :- use_rendering(table,
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\examples\queens.pl (1 hit)
	Line 2: :- use_rendering(chess).
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\lib\render\rdf.pl (1 hit)
	Line 54:     :- use_rendering(rdf, [max_length(100)]).
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\lib\render\table.pl (1 hit)
	Line 132: %   use_rendering/2, but we  cannot  distinguish   this  from  higher up
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\lib\render.pl (14 hits)
	Line 36: 	  [ use_rendering/1,		% +Renderer
	Line 37: 	    use_rendering/2,		% +Renderer, +Options
	Line 50: 	use_rendering(:),
	Line 51: 	use_rendering(:, +).
	Line 70:   :- use_rendering(Spec).
	Line 91: %%	use_rendering(+FileOrID)
	Line 93: %	Register an answer  renderer.   Same  as use_rendering(FileOrID,
	Line 96: %	@see use_rendering/2.
	Line 100: use_rendering(Rendering) :-
	Line 101: 	use_rendering(Rendering, []).
	Line 103: %%	use_rendering(:ID, +Options)
	Line 109: use_rendering(Rendering, Options) :-
	Line 119: system:term_expansion((:- use_rendering(Renderer)), Expanded) :-
	Line 121: system:term_expansion((:- use_rendering(Renderer, Options)), Expanded) :-
  C:\Users\Groot\Documents\GitHub\SWI-Prolog (Reference code for searching)\swish-master\lib\template_hint.pl (6 hits)
	Line 134: no_template(use_rendering/1).
	Line 135: no_template(use_rendering/2).
	Line 344: rendering_template([ json{displayText:  "use_rendering(+Renderer).",
	Line 346: 			  template:     "use_rendering(${Renderer}).",
	Line 348: 		     json{displayText:  "use_rendering(+Renderer, +Options).",
	Line 350: 			  template:     "use_rendering(${Renderer}).",

The interesting point to note about the results is that use_rendering is used with SWISH and those that don’t code with SWISH would probably not know this. :slightly_smiling_face:

See: SWISH Result rendering

Yes. I don’t know swish.

I thought there were a particular package.

Thanks.